]> git.sur5r.net Git - i3/i3lock/commitdiff
Fixed handle_screen_resize to build with NOLIBCAIRO enabled
authorThorsten Töpper <atsutane@freethoughts.de>
Tue, 23 Aug 2011 23:22:17 +0000 (01:22 +0200)
committerMichael Stapelberg <michael@stapelberg.de>
Tue, 23 Aug 2011 23:26:45 +0000 (01:26 +0200)
i3lock.c

index 36edf30b1b781656eb923d87a50ba3327a220327..89505a89e063dd68f7217c1cd3baf811f3185189 100644 (file)
--- a/i3lock.c
+++ b/i3lock.c
@@ -268,10 +268,12 @@ void handle_screen_resize(xcb_visualtype_t *vistype, xcb_window_t win, uint32_t*
     last_resolution[0] = geom->width;
     last_resolution[1] = geom->height;
 
+#ifndef NOLIBCAIRO
     if (img) {
         xcb_pixmap_t bg_pixmap = draw_image(vistype, last_resolution, color);
         xcb_change_window_attributes(conn, win, XCB_CW_BACK_PIXMAP, (uint32_t[1]){ bg_pixmap });
     }
+#endif
 
     uint32_t mask = XCB_CONFIG_WINDOW_WIDTH | XCB_CONFIG_WINDOW_HEIGHT;
     xcb_configure_window(conn, win, mask, last_resolution);