[mutter/wip/xinput2r: 43/68] window: query the guessed pointer's modifiers on _NET_WM_MOVERESIZE
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/wip/xinput2r: 43/68] window: query the guessed pointer's modifiers on _NET_WM_MOVERESIZE
- Date: Wed, 24 Oct 2012 16:12:56 +0000 (UTC)
commit 731cb201329e1c8709acbf552c25c1cc3b3b3025
Author: Carlos Garnacho <carlosg gnome org>
Date: Sun Jul 3 21:21:34 2011 +0200
window: query the guessed pointer's modifiers on _NET_WM_MOVERESIZE
src/core/window.c | 13 +++++--------
1 files changed, 5 insertions(+), 8 deletions(-)
---
diff --git a/src/core/window.c b/src/core/window.c
index 048c9c6..03a0277 100644
--- a/src/core/window.c
+++ b/src/core/window.c
@@ -6724,8 +6724,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
@@ -6733,12 +6731,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)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]