From bccbbedf91365a4aa6e23958d9f1713723a1f1bd Mon Sep 17 00:00:00 2001 From: Federico Angelilli Date: Fri, 15 Mar 2024 21:49:36 +0100 Subject: Make button click detection work with the new layouts --- src/draw.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/draw.c') diff --git a/src/draw.c b/src/draw.c index 7ee9de4..13e9058 100644 --- a/src/draw.c +++ b/src/draw.c @@ -265,6 +265,9 @@ void draw_compute_layout(Drawer *draw, Window *win, GList *btns) layout->width = x - layout->x; layout->height = height; + // Otherwise button_action_find will not work! + layout->children = g_list_reverse(layout->children); + // FIXME: Temporary solution to make the antialiasing (or the circles not overlapping correctly) problem less noticeable bool fix_left = CAST(g_list_first(group->children)->data, Button)->x_pad == 0; -- cgit v1.2.3