diff --git a/tools/libinput-debug-gui.c b/tools/libinput-debug-gui.c index 309c0450..60df2ae5 100644 --- a/tools/libinput-debug-gui.c +++ b/tools/libinput-debug-gui.c @@ -347,7 +347,8 @@ backend_is_x11(void) static bool window_lock_pointer(struct window *w) { - w->lock_pointer.locked = false; + if (w->lock_pointer.locked) + return true; #if HAVE_GTK_WAYLAND if (backend_is_wayland())