diff options
| author | Federico Angelilli <code@fedang.net> | 2023-12-07 16:09:20 +0100 |
|---|---|---|
| committer | Federico Angelilli <code@fedang.net> | 2023-12-07 16:09:20 +0100 |
| commit | 4b83ba02939ad7692ebd7e71161d37eabe4b73e3 (patch) | |
| tree | 254478db8fd094ea4ae914605e418a8f94c8ea09 /src/state.c | |
| parent | 7da583328758e3e8e3ace381aab9e98313f76767 (diff) | |
Tweak some buttons
Diffstat (limited to 'src/state.c')
| -rw-r--r-- | src/state.c | 3 |
1 files changed, 3 insertions, 0 deletions
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); |
