[gtk+/client-side-windows: 13/284] Grab pointer on toplevel window, not on nearest native, so that we always get all events on toplevel



commit d47ee4d797e4ca299e86f8155a58075ecf0bfa11
Author: Alexander Larsson <alexl redhat com>
Date:   Thu Dec 4 11:19:32 2008 +0100

    Grab pointer on toplevel window, not on nearest native, so that we always get all events on toplevel
---
 gdk/x11/gdkmain-x11.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/gdk/x11/gdkmain-x11.c b/gdk/x11/gdkmain-x11.c
index dd75b63..2ab67c7 100644
--- a/gdk/x11/gdkmain-x11.c
+++ b/gdk/x11/gdkmain-x11.c
@@ -204,7 +204,7 @@ gdk_pointer_grab (GdkWindow *	  window,
   g_return_val_if_fail (GDK_IS_WINDOW (window), 0);
   g_return_val_if_fail (confine_to == NULL || GDK_IS_WINDOW (confine_to), 0);
 
-  native = _gdk_window_get_impl_window (window);
+  native = gdk_window_get_toplevel (window);
 
   if (confine_to)
     confine_to = _gdk_window_get_impl_window (confine_to);



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