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:
Carlos Garnacho 2022-10-21 17:23:36 +02:00 committed by Marge Bot
parent b2ebe9c262
commit f2ff317206

View File

@ -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)