mirror of
https://github.com/brl/mutter.git
synced 2024-11-23 00:20:42 -05:00
core: Drop unnecessary code
This is already handled by the meta_compositor_grab_begin/end calls, for the Wayland cases. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2683>
This commit is contained in:
parent
b2ebe9c262
commit
f2ff317206
@ -231,15 +231,9 @@ meta_display_handle_event (MetaDisplay *display,
|
|||||||
|
|
||||||
if (display->grabbed_in_clutter != has_grab)
|
if (display->grabbed_in_clutter != has_grab)
|
||||||
{
|
{
|
||||||
#ifdef HAVE_WAYLAND
|
|
||||||
if (wayland_compositor)
|
|
||||||
meta_display_sync_wayland_input_focus (display);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
if (!display->grabbed_in_clutter && has_grab)
|
if (!display->grabbed_in_clutter && has_grab)
|
||||||
{
|
{
|
||||||
display->grabbed_in_clutter = TRUE;
|
display->grabbed_in_clutter = TRUE;
|
||||||
meta_display_cancel_touch (display);
|
|
||||||
meta_compositor_grab_begin (compositor);
|
meta_compositor_grab_begin (compositor);
|
||||||
}
|
}
|
||||||
else if (display->grabbed_in_clutter && !has_grab)
|
else if (display->grabbed_in_clutter && !has_grab)
|
||||||
|
Loading…
Reference in New Issue
Block a user