Linux/X11/touch: don't send duplicate mouse-up events for first touch

This commit is contained in:
Robin Gareus 2025-04-10 18:25:58 +02:00
parent 11bc7a651b
commit 8eab71fef4
No known key found for this signature in database
GPG key ID: A090BCE02CF57F04

View file

@ -10979,6 +10979,10 @@ proxy_button_event (GdkEvent *source_event,
g_assert (0);
return TRUE;
}
if (type == GDK_TOUCH_END && NULL != _gdk_display_has_pointer_grab (display, serial)) {
/* skip if grabbed, button release event will be sent directly */
return TRUE;
}
convert_toplevel_coords_to_window (event_win,
toplevel_x, toplevel_y,
&event->button.x, &event->button.y);