diff options
Diffstat (limited to 'src/window.c')
| -rw-r--r-- | src/window.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/window.c b/src/window.c index 813fb4b..ca396cc 100644 --- a/src/window.c +++ b/src/window.c @@ -242,11 +242,13 @@ void window_resize(window_t *window, int width, int height) // Update shape mask window_reshape(window); + + // Update cairo surface + cairo_xcb_surface_set_size(window->surface, width, height); } -void window_present(window_t *window, cairo_surface_t *surface, int width, int height) +void window_present(window_t *window, cairo_surface_t *surface) { - cairo_xcb_surface_set_size(window->surface, width, height); xcb_clear_area(window->display->connection, false, window->window, 0, 0, 0, 0); log_trace("Cleared window area"); |
