aboutsummaryrefslogtreecommitdiff
path: root/src/draw.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/draw.c')
-rw-r--r--src/draw.c3
1 files changed, 3 insertions, 0 deletions
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;