From 69e8ac6f07402ba70fd79df92bc6560c0952c242 Mon Sep 17 00:00:00 2001 From: LemonBoy Date: Thu, 24 Jul 2014 10:50:31 +0200 Subject: [PATCH] Fix #69. Thanks @matchew ! --- bar.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/bar.c b/bar.c index 3dac275..3fed67e 100644 --- a/bar.c +++ b/bar.c @@ -709,10 +709,8 @@ get_randr_monitors (void) return; } - if (ci_reply->rotation & (XCB_RANDR_ROTATION_ROTATE_90|XCB_RANDR_ROTATION_ROTATE_270)) - rects[i] = (xcb_rectangle_t){ ci_reply->x, ci_reply->y, ci_reply->height, ci_reply->width }; - else - rects[i] = (xcb_rectangle_t){ ci_reply->x, ci_reply->y, ci_reply->width, ci_reply->height }; + /* There's no need to handle rotated screens here (see #69) */ + rects[i] = (xcb_rectangle_t){ ci_reply->x, ci_reply->y, ci_reply->width, ci_reply->height }; free(ci_reply);