debug-gui: avoid locking pointer twice
authorJosé Expósito <jose.exposito89@gmail.com>
Mon, 10 Oct 2022 06:14:55 +0000 (08:14 +0200)
committerJosé Expósito <jose.exposito89@gmail.com>
Mon, 10 Oct 2022 08:46:30 +0000 (08:46 +0000)
commite8732802b7a3a45194be242a02ead13027c7fd73
treeaacb9c4531546800e54ad3c4b24bd3edae0338e0
parent9c789cc25408d36833768c762ae51eedbd7d09c9
debug-gui: avoid locking pointer twice

On Sway, and probably other Wayland compositors based on wlroots, the
window_lock_pointer() was called twice.

Avoid errors when window_lock_pointer() is invoked multiple times.

Fix https://gitlab.freedesktop.org/libinput/libinput/-/issues/808
Signed-off-by: José Expósito <jose.exposito89@gmail.com>
tools/libinput-debug-gui.c