Fix #69. Thanks @matchew !
This commit is contained in:
parent
6df9a2dd68
commit
69e8ac6f07
6
bar.c
6
bar.c
|
@ -709,10 +709,8 @@ get_randr_monitors (void)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ci_reply->rotation & (XCB_RANDR_ROTATION_ROTATE_90|XCB_RANDR_ROTATION_ROTATE_270))
|
/* There's no need to handle rotated screens here (see #69) */
|
||||||
rects[i] = (xcb_rectangle_t){ ci_reply->x, ci_reply->y, ci_reply->height, ci_reply->width };
|
rects[i] = (xcb_rectangle_t){ ci_reply->x, ci_reply->y, ci_reply->width, ci_reply->height };
|
||||||
else
|
|
||||||
rects[i] = (xcb_rectangle_t){ ci_reply->x, ci_reply->y, ci_reply->width, ci_reply->height };
|
|
||||||
|
|
||||||
free(ci_reply);
|
free(ci_reply);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user