From ce6c4c9209a1e2dc0ad0ed0a5968270e9dcf5e0c Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Sun, 26 Dec 2021 19:14:43 -0800 Subject: [PATCH] handle_keypress: return a C99 bool instead of a boolean --- plugin/xlib/gvdevice_xlib.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugin/xlib/gvdevice_xlib.c b/plugin/xlib/gvdevice_xlib.c index 92b0d78bd..c2fd1b482 100644 --- a/plugin/xlib/gvdevice_xlib.c +++ b/plugin/xlib/gvdevice_xlib.c @@ -92,7 +92,7 @@ static void handle_client_message(GVJ_t * job, XClientMessageEvent * cmev) exit(0); } -static boolean handle_keypress(GVJ_t *job, XKeyEvent *kev) +static bool handle_keypress(GVJ_t *job, XKeyEvent *kev) { int i; @@ -101,9 +101,9 @@ static boolean handle_keypress(GVJ_t *job, XKeyEvent *kev) keycodes = job->keycodes; for (i=0; i < job->numkeys; i++) { if (kev->keycode == keycodes[i]) - return (job->keybindings[i].callback)(job); + return (job->keybindings[i].callback)(job) != 0; } - return FALSE; + return false; } static Visual *find_argb_visual(Display * dpy, int scr) -- 2.40.0