Ignore grabbing tablet devices without pads or tools

Signed-off-by: Jie Liu <liujie01@kylinos.cn>
This commit is contained in:
Jie Liu 2024-07-18 11:18:10 +08:00 committed by zhangshoucheng
parent 1ebcd27605
commit d8919311b1

View File

@ -4074,9 +4074,12 @@ gdk_wayland_seat_grab (GdkSeat *seat,
{
GdkWaylandTabletData *tablet = l->data;
if (tablet->current_tool)
{
gdk_wayland_device_maybe_emit_grab_crossing (tablet->logical_device,
surface,
evtime);
}
_gdk_display_add_device_grab (display,
tablet->logical_device,