From f7e94e7a0f33cbf6b5ee784974a431d633aada0f Mon Sep 17 00:00:00 2001 From: Federico Angelilli Date: Wed, 6 Mar 2024 21:36:14 +0100 Subject: Fix button ordering bug --- src/comet.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/comet.c') diff --git a/src/comet.c b/src/comet.c index 586245f..a969677 100644 --- a/src/comet.c +++ b/src/comet.c @@ -293,8 +293,6 @@ int main(int argc, char **argv) // Dwm tags DwmIpc *dwm = dwm_create(state, "/tmp/dwm.sock"); - // FIXME: BUG! Explodes if the buttons are not loaded with the left first!!! - // And I have no clue as to why!!!!! dwm_register_tags(dwm, color, purple, text_color, line_color); register_buttons(state, color, line_color, text_color); @@ -363,6 +361,8 @@ int main(int argc, char **argv) button_group_append(group, menu); state_add_button(state, group); + state_order_button(state); + connect_attach_state(con, state); connect_attach_source(con); -- cgit v1.2.3