forked from AuroraMiddleware/gtk
gdkwindow-x11: Rearrange a tiny bit
This commit is contained in:
parent
0d3f162d6b
commit
65022c4078
@ -5726,16 +5726,14 @@ gdk_x11_window_show_window_menu (GdkWindow *window,
|
||||
return FALSE;
|
||||
|
||||
gdk_event_get_root_coords (event, &x_root, &y_root);
|
||||
|
||||
device = gdk_event_get_device (event);
|
||||
|
||||
/* Ungrab the implicit grab */
|
||||
gdk_device_ungrab (device, gdk_event_get_time (event));
|
||||
|
||||
g_object_get (G_OBJECT (device),
|
||||
"device-id", &device_id,
|
||||
NULL);
|
||||
|
||||
/* Ungrab the implicit grab */
|
||||
gdk_device_ungrab (device, gdk_event_get_time (event));
|
||||
|
||||
xclient.type = ClientMessage;
|
||||
xclient.window = GDK_WINDOW_XID (window);
|
||||
xclient.message_type = gdk_x11_get_xatom_by_name_for_display (display, "_GTK_SHOW_WINDOW_MENU");
|
||||
|
Loading…
Reference in New Issue
Block a user