Calling XFlush() after ungrabbing, to avoid problems if the app
Mon Apr 21 15:07:29 2003 Owen Taylor <otaylor@redhat.com> * gdk/x11/gdkdisplay-x11.c (gdk_display_keyboard/pointer_ungrab): Calling XFlush() after ungrabbing, to avoid problems if the app subsequently blocks on a long-running operation. (#106520, reported by Rajkumar Siva)
This commit is contained in:
parent
feff41c77b
commit
dd6426b51e
@ -1,3 +1,10 @@
|
||||
Mon Apr 21 15:07:29 2003 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gdk/x11/gdkdisplay-x11.c (gdk_display_keyboard/pointer_ungrab):
|
||||
Calling XFlush() after ungrabbing, to avoid problems if
|
||||
the app subsequently blocks on a long-running operation.
|
||||
(#106520, reported by Rajkumar Siva)
|
||||
|
||||
Fri Apr 18 17:42:45 2003 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gdk/x11/gdkwindow-x11.c (set_initial_hints): Add
|
||||
|
@ -1,3 +1,10 @@
|
||||
Mon Apr 21 15:07:29 2003 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gdk/x11/gdkdisplay-x11.c (gdk_display_keyboard/pointer_ungrab):
|
||||
Calling XFlush() after ungrabbing, to avoid problems if
|
||||
the app subsequently blocks on a long-running operation.
|
||||
(#106520, reported by Rajkumar Siva)
|
||||
|
||||
Fri Apr 18 17:42:45 2003 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gdk/x11/gdkwindow-x11.c (set_initial_hints): Add
|
||||
|
@ -1,3 +1,10 @@
|
||||
Mon Apr 21 15:07:29 2003 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gdk/x11/gdkdisplay-x11.c (gdk_display_keyboard/pointer_ungrab):
|
||||
Calling XFlush() after ungrabbing, to avoid problems if
|
||||
the app subsequently blocks on a long-running operation.
|
||||
(#106520, reported by Rajkumar Siva)
|
||||
|
||||
Fri Apr 18 17:42:45 2003 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gdk/x11/gdkwindow-x11.c (set_initial_hints): Add
|
||||
|
@ -1,3 +1,10 @@
|
||||
Mon Apr 21 15:07:29 2003 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gdk/x11/gdkdisplay-x11.c (gdk_display_keyboard/pointer_ungrab):
|
||||
Calling XFlush() after ungrabbing, to avoid problems if
|
||||
the app subsequently blocks on a long-running operation.
|
||||
(#106520, reported by Rajkumar Siva)
|
||||
|
||||
Fri Apr 18 17:42:45 2003 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gdk/x11/gdkwindow-x11.c (set_initial_hints): Add
|
||||
|
@ -1,3 +1,10 @@
|
||||
Mon Apr 21 15:07:29 2003 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gdk/x11/gdkdisplay-x11.c (gdk_display_keyboard/pointer_ungrab):
|
||||
Calling XFlush() after ungrabbing, to avoid problems if
|
||||
the app subsequently blocks on a long-running operation.
|
||||
(#106520, reported by Rajkumar Siva)
|
||||
|
||||
Fri Apr 18 17:42:45 2003 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gdk/x11/gdkwindow-x11.c (set_initial_hints): Add
|
||||
|
@ -413,10 +413,16 @@ void
|
||||
gdk_display_pointer_ungrab (GdkDisplay *display,
|
||||
guint32 time)
|
||||
{
|
||||
Display *xdisplay;
|
||||
|
||||
g_return_if_fail (GDK_IS_DISPLAY (display));
|
||||
|
||||
xdisplay = GDK_DISPLAY_XDISPLAY (display);
|
||||
|
||||
_gdk_input_ungrab_pointer (display, time);
|
||||
XUngrabPointer (GDK_DISPLAY_XDISPLAY (display), time);
|
||||
XUngrabPointer (xdisplay, time);
|
||||
XFlush (xdisplay);
|
||||
|
||||
GDK_DISPLAY_X11 (display)->pointer_xgrab_window = NULL;
|
||||
}
|
||||
|
||||
@ -451,9 +457,15 @@ void
|
||||
gdk_display_keyboard_ungrab (GdkDisplay *display,
|
||||
guint32 time)
|
||||
{
|
||||
g_return_if_fail (GDK_IS_DISPLAY (display));
|
||||
Display *xdisplay;
|
||||
|
||||
g_return_if_fail (GDK_IS_DISPLAY (display));
|
||||
|
||||
xdisplay = GDK_DISPLAY_XDISPLAY (display);
|
||||
|
||||
XUngrabKeyboard (xdisplay, time);
|
||||
XFlush (xdisplay);
|
||||
|
||||
XUngrabKeyboard (GDK_DISPLAY_XDISPLAY (display), time);
|
||||
GDK_DISPLAY_X11 (display)->keyboard_xgrab_window = NULL;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user