From a34adda3a4a119282ee9c831cb9a05eb8674930d Mon Sep 17 00:00:00 2001 From: Sascha Kruse Date: Fri, 22 Feb 2013 20:41:23 +0000 Subject: [PATCH] resize surface to match window size --- x.c | 1 + 1 file changed, 1 insertion(+) diff --git a/x.c b/x.c index 11c7ab6..36a1a02 100644 --- a/x.c +++ b/x.c @@ -291,6 +291,7 @@ void x_win_draw(void) height += g_slist_length(layouts) * settings.padding * 2; XResizeWindow(xctx.dpy, xctx.win, width, height); + cairo_xlib_surface_set_size(cairo_ctx.surface, width, height); cairo_set_source_rgb(c, frame_color.r, frame_color.g, frame_color.b); cairo_rectangle(c, 0.0, 0.0, width, height);