From 92f3100e9d30b10d93eed4dbb409227b9b9b588f Mon Sep 17 00:00:00 2001 From: Armin Novak Date: Tue, 19 Nov 2019 08:12:43 +0100 Subject: [PATCH] Fixed #5730: Decoupled floatbar button focus from click events. --- client/X11/xf_floatbar.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/X11/xf_floatbar.c b/client/X11/xf_floatbar.c index de221fd41..a57b9790b 100644 --- a/client/X11/xf_floatbar.c +++ b/client/X11/xf_floatbar.c @@ -528,6 +528,7 @@ static void xf_floatbar_button_event_buttonrelease(xfFloatbar* floatbar, XEvent* { if (button->clicked) button->onclick(floatbar); + button->clicked = FALSE; } } @@ -658,7 +659,6 @@ static void xf_floatbar_button_event_focusout(xfFloatbar* floatbar, XEvent* even if (button) { button->focus = FALSE; - button->clicked = FALSE; xf_floatbar_button_event_expose(floatbar, event); } }