--- Begin Message ---
Hello,

I saw your name posted as the maintainer for synergy in debian. I'm
not sure if synergy is actively maintained (latest release is 2006),
so I figured you might be the best person to send this to:

I made a patch that will fix a bug that causes a segmentation fault in
synergys. The problem occurs when a hotkey is used to switch.
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=449255

The patch is below, and also included in an attachment.

Thank you,

Alex


+++ CServer.cpp 2009-04-12 21:37:01.000000000 -0500
@@ -439,6 +439,14 @@
        {
                SInt32 dx, dy, dw, dh;
                dst->getShape(dx, dy, dw, dh);
+
+               // If given mouse position is invalid (e.g. during a
hotkey screen switch)
+               // then set the new mouse position as the center of
the screen to be switched to
+               if (x < dx || y < dy || x > (dx + dw) || y > (dy + dh)) {
+                       x = (dw / 2);
+                       y = (dh / 2);
+               }
+
                assert(x >= dx && y >= dy && x < dx + dw && y < dy + dh);
        }
 #endif
+++ CServer.cpp 2009-04-12 21:37:01.000000000 -0500
@@ -439,6 +439,14 @@
        {
                SInt32 dx, dy, dw, dh;
                dst->getShape(dx, dy, dw, dh);
+
+               // If given mouse position is invalid (e.g. during a hotkey screen switch)
+               // then set the new mouse position as the center of the screen to be switched to
+               if (x < dx || y < dy || x > (dx + dw) || y > (dy + dh)) {
+                       x = (dw / 2);
+                       y = (dh / 2);
+               }
+
                assert(x >= dx && y >= dy && x < dx + dw && y < dy + dh);
        }
 #endif


--- End Message ---

Reply via email to