resize surface to match window size

This commit is contained in:
Sascha Kruse 2013-02-22 20:41:23 +00:00
parent 88cb136b88
commit a34adda3a4

1
x.c
View File

@ -291,6 +291,7 @@ void x_win_draw(void)
height += g_slist_length(layouts) * settings.padding * 2; height += g_slist_length(layouts) * settings.padding * 2;
XResizeWindow(xctx.dpy, xctx.win, width, height); 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_set_source_rgb(c, frame_color.r, frame_color.g, frame_color.b);
cairo_rectangle(c, 0.0, 0.0, width, height); cairo_rectangle(c, 0.0, 0.0, width, height);