forked from AuroraMiddleware/gtk
x11: Do fallback resize without deprecated functions
After consulting with Carlos, we agreed that it should be enough to grab the core pointer instead of doing a full grab. If it turns out that's wrong, we need to adapt the internal API for resizes to take the device doing the resize.
This commit is contained in:
parent
14d35d5c09
commit
eddacfcc71
@ -3962,7 +3962,7 @@ wmspec_moveresize (GdkWindow *window,
|
|||||||
XClientMessageEvent xclient;
|
XClientMessageEvent xclient;
|
||||||
|
|
||||||
/* Release passive grab */
|
/* Release passive grab */
|
||||||
gdk_display_pointer_ungrab (display, timestamp);
|
gdk_device_ungrab (display->core_pointer, timestamp);
|
||||||
|
|
||||||
memset (&xclient, 0, sizeof (xclient));
|
memset (&xclient, 0, sizeof (xclient));
|
||||||
xclient.type = ClientMessage;
|
xclient.type = ClientMessage;
|
||||||
@ -4346,13 +4346,13 @@ create_moveresize_window (MoveResizeData *mv_resize,
|
|||||||
|
|
||||||
gdk_window_show (mv_resize->moveresize_emulation_window);
|
gdk_window_show (mv_resize->moveresize_emulation_window);
|
||||||
|
|
||||||
status = gdk_pointer_grab (mv_resize->moveresize_emulation_window,
|
status = gdk_device_grab (gdk_window_get_display (mv_resize->moveresize_emulation_window)->core_pointer,
|
||||||
FALSE,
|
mv_resize->moveresize_emulation_window,
|
||||||
GDK_BUTTON_RELEASE_MASK |
|
GDK_OWNERSHIP_NONE,
|
||||||
GDK_POINTER_MOTION_MASK,
|
FALSE,
|
||||||
NULL,
|
GDK_BUTTON_RELEASE_MASK | GDK_POINTER_MOTION_MASK,
|
||||||
NULL,
|
NULL,
|
||||||
timestamp);
|
timestamp);
|
||||||
|
|
||||||
if (status != GDK_GRAB_SUCCESS)
|
if (status != GDK_GRAB_SUCCESS)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user