From 2ce41c83961bdbf4c5577f45ba9dc6f34451cc55 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Mon, 10 Jan 2022 20:17:50 -0800 Subject: [PATCH] handle_keypress: return a C99 bool instead of boolean --- plugin/glitz/gvdevice_glitz.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugin/glitz/gvdevice_glitz.c b/plugin/glitz/gvdevice_glitz.c index f00162bde..3a8f342bc 100644 --- a/plugin/glitz/gvdevice_glitz.c +++ b/plugin/glitz/gvdevice_glitz.c @@ -105,7 +105,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; @@ -114,9 +114,9 @@ static boolean handle_keypress(GVJ_t *job, XKeyEvent *kev) keycodes = (KeyCode *)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