aboutsummaryrefslogtreecommitdiff
path: root/src/state.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/state.c')
-rw-r--r--src/state.c3
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);