wayland: Use gdk_debug_message consistently

For debug messages, we should always use gdk_debug_message.
This commit is contained in:
Matthias Clasen 2024-04-21 19:40:54 -04:00
parent fd1e1b9b7c
commit b5fb584316

View File

@ -781,7 +781,7 @@ pointer_handle_motion (void *data,
{ {
double x, y; double x, y;
gdk_event_get_position (event, &x, &y); gdk_event_get_position (event, &x, &y);
g_message ("motion %f %f, seat %p state %d", gdk_debug_message ("motion %f %f, seat %p state %d",
x, y, seat, gdk_event_get_modifier_state (event)); x, y, seat, gdk_event_get_modifier_state (event));
} }
@ -1664,7 +1664,7 @@ touch_handle_down (void *data,
{ {
double xx, yy; double xx, yy;
gdk_event_get_position (event, &xx, &yy); gdk_event_get_position (event, &xx, &yy);
g_message ("touch begin %f %f", xx, yy); gdk_debug_message ("touch begin %f %f", xx, yy);
} }
_gdk_wayland_display_deliver_event (seat->display, event); _gdk_wayland_display_deliver_event (seat->display, event);
@ -1699,7 +1699,7 @@ touch_handle_up (void *data,
{ {
double x, y; double x, y;
gdk_event_get_position (event, &x, &y); gdk_event_get_position (event, &x, &y);
g_message ("touch end %f %f", x, y); gdk_debug_message ("touch end %f %f", x, y);
} }
_gdk_wayland_display_deliver_event (seat->display, event); _gdk_wayland_display_deliver_event (seat->display, event);
@ -1747,7 +1747,7 @@ touch_handle_motion (void *data,
{ {
double xx, yy; double xx, yy;
gdk_event_get_position (event, &xx, &yy); gdk_event_get_position (event, &xx, &yy);
g_message ("touch update %f %f", xx, yy); gdk_debug_message ("touch update %f %f", xx, yy);
} }
_gdk_wayland_display_deliver_event (seat->display, event); _gdk_wayland_display_deliver_event (seat->display, event);
@ -1841,7 +1841,7 @@ emit_gesture_swipe_event (GdkWaylandSeat *seat,
{ {
double x, y; double x, y;
gdk_event_get_position (event, &x, &y); gdk_event_get_position (event, &x, &y);
g_message ("swipe event %d, coords: %f %f, seat %p state %d", gdk_debug_message ("swipe event %d, coords: %f %f, seat %p state %d",
gdk_event_get_event_type (event), x, y, seat, gdk_event_get_event_type (event), x, y, seat,
gdk_event_get_modifier_state (event)); gdk_event_get_modifier_state (event));
} }
@ -1936,7 +1936,7 @@ emit_gesture_pinch_event (GdkWaylandSeat *seat,
{ {
double x, y; double x, y;
gdk_event_get_position (event, &x, &y); gdk_event_get_position (event, &x, &y);
g_message ("pinch event %d, coords: %f %f, seat %p state %d", gdk_debug_message ("pinch event %d, coords: %f %f, seat %p state %d",
gdk_event_get_event_type (event), gdk_event_get_event_type (event),
x, y, seat, x, y, seat,
gdk_event_get_modifier_state (event)); gdk_event_get_modifier_state (event));
@ -2030,7 +2030,7 @@ emit_gesture_hold_event (GdkWaylandSeat *seat,
{ {
double x, y; double x, y;
gdk_event_get_position (event, &x, &y); gdk_event_get_position (event, &x, &y);
g_message ("hold event %d, coords: %f %f, seat %p state %d", gdk_debug_message ("hold event %d, coords: %f %f, seat %p state %d",
gdk_event_get_event_type (event), gdk_event_get_event_type (event),
x, y, seat, x, y, seat,
gdk_event_get_modifier_state (event)); gdk_event_get_modifier_state (event));