From 4b83ba02939ad7692ebd7e71161d37eabe4b73e3 Mon Sep 17 00:00:00 2001 From: Federico Angelilli Date: Thu, 7 Dec 2023 16:09:20 +0100 Subject: Tweak some buttons --- src/state.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/state.c') diff --git a/src/state.c b/src/state.c index 893976a..0054076 100644 --- a/src/state.c +++ b/src/state.c @@ -35,6 +35,9 @@ static gboolean redraw(gpointer data) return G_SOURCE_REMOVE; } +// Sometimes we schedule multiple redraws in a row without actually checking if there are +// others already scheduled... +// This could probably be fixed by implementing a redraw source... void state_redraw(State *state, bool changed_layout) { g_idle_add_full(G_PRIORITY_HIGH_IDLE, changed_layout ? redraw_and_layout : redraw, state, NULL); -- cgit v1.2.3