From 67445a22d320c2d580931f2730e694fdc856cd30 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 23 Mar 2021 15:53:55 +0530 Subject: [PATCH] ... --- glfw/wl_text_input.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/glfw/wl_text_input.c b/glfw/wl_text_input.c index ae6a3d411..51dfd39e3 100644 --- a/glfw/wl_text_input.c +++ b/glfw/wl_text_input.c @@ -8,18 +8,19 @@ #include "wl_text_input.h" #include "internal.h" #include "wayland-text-input-unstable-v3-client-protocol.h" +#define debug(...) if (_glfw.hints.init.debugKeyboard) printf(__VA_ARGS__); static struct zwp_text_input_v3* text_input; static struct zwp_text_input_manager_v3* text_input_manager; static void text_input_enter(void *data UNUSED, struct zwp_text_input_v3 *text_input UNUSED, struct wl_surface *surface UNUSED) { - printf("enter text input\n"); + debug("text-input: enter event\n"); } static void text_input_leave(void *data UNUSED, struct zwp_text_input_v3 *text_input UNUSED, struct wl_surface *surface UNUSED) { - printf("leave text input\n"); + debug("text-input: leave event\n"); } static void