mirror of
https://github.com/brl/mutter.git
synced 2025-03-23 11:43:50 +00:00
window: query the guessed pointer's modifiers on _NET_WM_MOVERESIZE
This commit is contained in:
parent
95247457ef
commit
84dfc98636
@ -6727,8 +6727,6 @@ meta_window_client_message (MetaWindow *window,
|
|||||||
*/
|
*/
|
||||||
if (button == 0)
|
if (button == 0)
|
||||||
{
|
{
|
||||||
int x, y, query_root_x, query_root_y;
|
|
||||||
Window root, child;
|
|
||||||
guint mask;
|
guint mask;
|
||||||
|
|
||||||
/* The race conditions in this _NET_WM_MOVERESIZE thing
|
/* The race conditions in this _NET_WM_MOVERESIZE thing
|
||||||
@ -6736,12 +6734,11 @@ meta_window_client_message (MetaWindow *window,
|
|||||||
*/
|
*/
|
||||||
mask = 0;
|
mask = 0;
|
||||||
meta_error_trap_push (window->display);
|
meta_error_trap_push (window->display);
|
||||||
XQueryPointer (window->display->xdisplay,
|
meta_device_pointer_query_position (META_DEVICE_POINTER (device),
|
||||||
window->xwindow,
|
window->xwindow,
|
||||||
&root, &child,
|
NULL, NULL, NULL,
|
||||||
&query_root_x, &query_root_y,
|
NULL, NULL, NULL,
|
||||||
&x, &y,
|
&mask);
|
||||||
&mask);
|
|
||||||
meta_error_trap_pop (window->display);
|
meta_error_trap_pop (window->display);
|
||||||
|
|
||||||
if (mask & Button1Mask)
|
if (mask & Button1Mask)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user