diff options
author | Thorsten Töpper <atsutane@freethoughts.de> | 2011-08-24 01:22:17 +0200 |
---|---|---|
committer | Michael Stapelberg <michael@stapelberg.de> | 2011-08-24 01:26:45 +0200 |
commit | c81f8e82841d587a7b62873a2dd71521562f73c1 (patch) | |
tree | 6de6d55817bc6da922128632ebdc66b1e5fbdd40 /i3lock.c | |
parent | c8eecefe83acd137ea38f2c9d7a67e6dcce80471 (diff) |
Fixed handle_screen_resize to build with NOLIBCAIRO enabled
Diffstat (limited to 'i3lock.c')
-rw-r--r-- | i3lock.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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); |