summaryrefslogtreecommitdiff
path: root/unlock_indicator.c
diff options
context:
space:
mode:
authorMichael Stapelberg <michael@stapelberg.de>2012-05-19 21:13:03 +0200
committerMichael Stapelberg <michael@stapelberg.de>2012-05-19 21:13:03 +0200
commit9b29ae7afd3f3827c107fb441ebcbbf73a1c1ced (patch)
treee47263d8250a403b9212931866d085c601842873 /unlock_indicator.c
parentf9416f6bc66c9d950d0f74a34b093a48a94d3104 (diff)
Bugfix: Correctly center unlock indicator after reconfiguring screens (Thanks xn)
Fixes: #712
Diffstat (limited to 'unlock_indicator.c')
-rw-r--r--unlock_indicator.c2
1 files changed, 1 insertions, 1 deletions
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);
}