[fusion-commits] Mouse position polling plugin: Changes to 'master' (2d1719edc6237b9db331b59ff14eef2329005eb4)

kristian at server.opencompositing.org kristian at server.opencompositing.org
Thu May 22 10:42:20 CEST 2008


New commits:
commit 2d1719edc6237b9db331b59ff14eef2329005eb4
Author: Kristian Lyngstol <kristian at bohemians.org>
Date:   Thu May 22 10:41:39 2008 +0200

    Allow removal of mousepoll clients during client handeling


 mousepoll.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)


Modified: fusion/plugins/mousepoll/mousepoll.c
===================================================================
--- fusion/plugins/mousepoll/mousepoll.c
+++ fusion/plugins/mousepoll/mousepoll.c
@@ -120,9 +120,13 @@ updatePosition (void *c)
 
     if (getMousePosition (s))
     {
-	for (mc = ms->clients; mc; mc = mc->next)
+	MousepollClient *next;
+	for (mc = ms->clients; mc; mc = next)
+	{
+	    next = mc->next;
 	    if (mc->update)
 		(*mc->update) (s, ms->posX, ms->posY);
+	}
     }
 
     return TRUE;


More information about the commits mailing list