From 497da6b30144084516140686b11fe3036321bd3e Mon Sep 17 00:00:00 2001 From: Hansem Ro Date: Sun, 7 Apr 2024 23:11:25 -0700 Subject: [PATCH] xi2: Fix incorrect input source type in Input debug message This drops cursor and eraser source names to account for their removal from GdkInputSource so that GDK_DEBUG=input debug message correctly prints source type in X11 environment. Fixes: c1d90273 ("gdk: Drop GDK_SOURCE_ERASER") Fixes: 3285f52d ("gdk: Drop GDK_SOURCE_CURSOR") Closes: #6619 --- gdk/x11/gdkdevicemanager-xi2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gdk/x11/gdkdevicemanager-xi2.c b/gdk/x11/gdkdevicemanager-xi2.c index 416a4218d7..0fc73f3f70 100644 --- a/gdk/x11/gdkdevicemanager-xi2.c +++ b/gdk/x11/gdkdevicemanager-xi2.c @@ -520,7 +520,7 @@ create_device (GdkX11DeviceManagerXI2 *device_manager, if (GDK_DISPLAY_DEBUG_CHECK (display, INPUT)) { const char *type_names[] = { "logical", "physical", "floating" }; - const char *source_names[] = { "mouse", "pen", "eraser", "cursor", "keyboard", "direct touch", "indirect touch", "trackpoint", "pad" }; + const char *source_names[] = { "mouse", "pen", "keyboard", "direct touch", "indirect touch", "trackpoint", "pad" }; gdk_debug_message ("input device:\n\tname: %s\n\ttype: %s\n\tsource: %s\n\thas cursor: %d\n\ttouches: %d", dev->name, type_names[type],