[gtk-vnc] Process all enter/leave events to ensure we release key grab after a mouse ungrab in relative mode



commit 7a1fc845ba20c63c989828675c5415bce82cc1c5
Author: Daniel P. Berrange <berrange redhat com>
Date:   Wed Jun 10 13:29:51 2009 +0100

    Process all enter/leave events to ensure we release key grab after a mouse ungrab in relative mode
---
 src/vncdisplay.c |    6 ------
 1 files changed, 0 insertions(+), 6 deletions(-)

diff --git a/src/vncdisplay.c b/src/vncdisplay.c
index a74494f..5fa05c7 100644
--- a/src/vncdisplay.c
+++ b/src/vncdisplay.c
@@ -765,9 +765,6 @@ static gboolean enter_event(GtkWidget *widget, GdkEventCrossing *crossing)
         if (priv->gvnc == NULL || !gvnc_is_initialized(priv->gvnc))
                 return FALSE;
 
-        if (crossing->mode != GDK_CROSSING_NORMAL)
-                return FALSE;
-
         if (priv->grab_keyboard)
                 do_keyboard_grab(VNC_DISPLAY(widget), FALSE);
 
@@ -781,9 +778,6 @@ static gboolean leave_event(GtkWidget *widget, GdkEventCrossing *crossing)
         if (priv->gvnc == NULL || !gvnc_is_initialized(priv->gvnc))
                 return FALSE;
 
-        if (crossing->mode != GDK_CROSSING_NORMAL)
-                return FALSE;
-
         if (priv->grab_keyboard)
                 do_keyboard_ungrab(VNC_DISPLAY(widget), FALSE);
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]