frames: Clutterify frame event handling
This lets us remove our horrible X11-based, GDK-based hacky frame event handling in favor of a more sane one in Clutter.
This commit is contained in:
@ -66,9 +66,10 @@ get_window_for_event (MetaDisplay *display,
|
||||
else
|
||||
return NULL;
|
||||
}
|
||||
case META_EVENT_ROUTE_WAYLAND_POPUP:
|
||||
case META_EVENT_ROUTE_WINDOW_OP:
|
||||
case META_EVENT_ROUTE_COMPOSITOR_GRAB:
|
||||
case META_EVENT_ROUTE_WAYLAND_POPUP:
|
||||
case META_EVENT_ROUTE_FRAME_BUTTON:
|
||||
return display->grab_window;
|
||||
default:
|
||||
g_assert_not_reached ();
|
||||
@ -261,7 +262,8 @@ meta_display_handle_event (MetaDisplay *display,
|
||||
* event, and if it doesn't, replay the event to release our
|
||||
* own sync grab. */
|
||||
|
||||
if (display->event_route == META_EVENT_ROUTE_WINDOW_OP)
|
||||
if (display->event_route == META_EVENT_ROUTE_WINDOW_OP ||
|
||||
display->event_route == META_EVENT_ROUTE_FRAME_BUTTON)
|
||||
{
|
||||
bypass_clutter = TRUE;
|
||||
bypass_wayland = TRUE;
|
||||
|
Reference in New Issue
Block a user