diff options
Diffstat (limited to 'src/connect.c')
| -rw-r--r-- | src/connect.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/connect.c b/src/connect.c index bc45812..083d5a7 100644 --- a/src/connect.c +++ b/src/connect.c @@ -126,6 +126,12 @@ static gboolean source_check(GSource *source) return xsource->event != NULL; } +static void redraw(State *state) +{ + draw_compute_layout(state->draw, state->win, state->btns); + draw_paint(state->draw, state->win); +} + static gboolean source_dispatch(GSource *source, GSourceFunc callback, gpointer data) { EventSource *xsource = (EventSource *)source; @@ -157,7 +163,7 @@ static gboolean source_dispatch(GSource *source, GSourceFunc callback, gpointer log_debug("Processing event 'Expose' [type=%d]", XCB_EXPOSE); // Redraw - draw_paint(xsource->con->state->draw, xsource->con->state->win); + redraw(xsource->con->state); break; } @@ -198,7 +204,7 @@ static gboolean source_dispatch(GSource *source, GSourceFunc callback, gpointer update_scale(xsource->con); // Redraw - draw_paint(xsource->con->state->draw, xsource->con->state->win); + redraw(xsource->con->state); } break; } |
