The
.B "libinput debug\-gui"
tool creates a libinput context and a full-screen GTK window to visualize
-events processed by libinput.
+events processed by libinput. This tool exclusively grabs pointing devices
+and stops them from interacting with the rest of the GUI.
+.B Hit Esc to exit this tool.
.PP
This is a debugging tool only, its output or behavior may change at any
time. Do not rely on the output or the behavior.
{
struct window *w = data;
GdkDisplay *display;
+ GdkSeat *seat;
GdkWindow *window;
gtk_window_get_size(GTK_WINDOW(widget), &w->width, &w->height);
gdk_window_set_cursor(gtk_widget_get_window(w->win),
gdk_cursor_new_for_display(display,
GDK_BLANK_CURSOR));
+
+ seat = gdk_display_get_default_seat(display);
+ gdk_seat_grab(seat,
+ window,
+ GDK_SEAT_CAPABILITY_ALL_POINTING,
+ FALSE, /* owner-events */
+ NULL, /* cursor */
+ NULL, /* triggering event */
+ NULL, /* prepare_func */
+ NULL /* prepare_func_data */
+ );
}
static void