1
0
Fork 0

wayland: Do not claim tablet tool events as consumed without focus

If the tablet tool has no focus, it should let events go through.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3625>
This commit is contained in:
Carlos Garnacho 2024-02-28 14:52:25 +01:00 committed by Marge Bot
parent a26fca0117
commit 4c4c0b847d

View file

@ -792,9 +792,7 @@ static void
handle_motion_event (MetaWaylandTabletTool *tool,
const ClutterEvent *event)
{
if (!tool->focus_surface)
return;
g_assert (tool->focus_surface);
broadcast_motion (tool, event);
broadcast_axes (tool, event);
broadcast_frame (tool, event);
@ -807,8 +805,7 @@ handle_button_event (MetaWaylandTabletTool *tool,
ClutterEventType event_type;
int button;
if (!tool->focus_surface)
return;
g_assert (tool->focus_surface);
event_type = clutter_event_type (event);
button = clutter_event_get_button (event);
@ -869,6 +866,9 @@ gboolean
meta_wayland_tablet_tool_handle_event (MetaWaylandTabletTool *tool,
const ClutterEvent *event)
{
if (!tool->focus_surface)
return CLUTTER_EVENT_PROPAGATE;
switch (clutter_event_type (event))
{
case CLUTTER_PROXIMITY_IN: