mirror of
https://github.com/brl/mutter.git
synced 2024-12-27 21:32:14 +00:00
x11: Move away from MetaEventRoute
Nowadays, there's just 2 types of it, and can be pretty much solved with a META_GRAB_OP_NONE check. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2683>
This commit is contained in:
parent
12773cf8e2
commit
bb9cab1491
@ -970,7 +970,7 @@ handle_input_xevent (MetaX11Display *x11_display,
|
||||
switch (input_event->evtype)
|
||||
{
|
||||
case XI_Enter:
|
||||
if (display->event_route != META_EVENT_ROUTE_NORMAL)
|
||||
if (display->grab_op != META_GRAB_OP_NONE)
|
||||
break;
|
||||
|
||||
if (clutter_stage_get_grab_actor (stage) != NULL)
|
||||
@ -992,7 +992,7 @@ handle_input_xevent (MetaX11Display *x11_display,
|
||||
}
|
||||
break;
|
||||
case XI_Leave:
|
||||
if (display->event_route != META_EVENT_ROUTE_NORMAL)
|
||||
if (display->grab_op != META_GRAB_OP_NONE)
|
||||
break;
|
||||
|
||||
if (clutter_stage_get_grab_actor (stage) != NULL)
|
||||
|
Loading…
Reference in New Issue
Block a user