From e0966e7499cb84769d13a9a04ac90d63f6910f0f Mon Sep 17 00:00:00 2001 From: Carlos Garnacho Date: Sun, 3 Jul 2011 21:21:34 +0200 Subject: [PATCH] window: query the guessed pointer's modifiers on _NET_WM_MOVERESIZE --- src/core/window.c | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/src/core/window.c b/src/core/window.c index cb67c0c2c..ab016b521 100644 --- a/src/core/window.c +++ b/src/core/window.c @@ -6393,8 +6393,6 @@ meta_window_client_message (MetaWindow *window, */ if (button == 0) { - int x, y, query_root_x, query_root_y; - Window root, child; guint mask; /* The race conditions in this _NET_WM_MOVERESIZE thing @@ -6402,12 +6400,11 @@ meta_window_client_message (MetaWindow *window, */ mask = 0; meta_error_trap_push (window->display); - XQueryPointer (window->display->xdisplay, - window->xwindow, - &root, &child, - &query_root_x, &query_root_y, - &x, &y, - &mask); + meta_device_pointer_query_position (META_DEVICE_POINTER (device), + window->xwindow, + NULL, NULL, NULL, + NULL, NULL, NULL, + &mask); meta_error_trap_pop (window->display); if (mask & Button1Mask)