X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=unlock_indicator.c;h=a0decb44657a6d7263f79df7c5638af0299075f9;hb=dd02dff44a582fe95d2d4662a7ca537d6adebffb;hp=3a33ca95aff00dcb253f80a92c4cc146aef676d0;hpb=dc2b6e5f3985354d42ea015afc15be2258d6b660;p=i3%2Fi3lock diff --git a/unlock_indicator.c b/unlock_indicator.c index 3a33ca9..a0decb4 100644 --- a/unlock_indicator.c +++ b/unlock_indicator.c @@ -277,7 +277,7 @@ void redraw_screen(void) { xcb_change_window_attributes(conn, win, XCB_CW_BACK_PIXMAP, (uint32_t[1]){ bg_pixmap }); /* XXX: Possible optimization: Only update the area in the middle of the * screen instead of the whole screen. */ - xcb_clear_area(conn, 0, win, 0, 0, screen->width_in_pixels, screen->height_in_pixels); + xcb_clear_area(conn, 0, win, 0, 0, last_resolution[0], last_resolution[1]); xcb_free_pixmap(conn, bg_pixmap); xcb_flush(conn); }