From da2620901319974c5acac98583b8a26edf40ece2 Mon Sep 17 00:00:00 2001 From: krypt-n Date: Sun, 15 Nov 2015 13:24:36 +0100 Subject: [PATCH] Fix LemonBoy/bar#154 and krypt-n/bar#18 Widening the bitfield by 1 would be a solution aswell. Problem was that an int:3 has a range of -4 to 3, buttons 4 and 5 did not fit into it --- lemonbar.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lemonbar.c b/lemonbar.c index 11aabb3..c6e0b29 100644 --- a/lemonbar.c +++ b/lemonbar.c @@ -40,7 +40,7 @@ typedef struct area_t { unsigned int end:16; bool active:1; int align:3; - int button:3; + int button; xcb_window_t window; char *cmd; } area_t;