summaryrefslogtreecommitdiff
path: root/randr.c
diff options
context:
space:
mode:
Diffstat (limited to 'randr.c')
-rw-r--r--randr.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/randr.c b/randr.c
index 4b1ea97..ef84c49 100644
--- a/randr.c
+++ b/randr.c
@@ -58,8 +58,9 @@ void randr_init(int *event_base, xcb_window_t root) {
58 58
59 free(randr_version); 59 free(randr_version);
60 60
61 if (event_base != NULL) 61 if (event_base != NULL) {
62 *event_base = extreply->first_event; 62 *event_base = extreply->first_event;
63 }
63 64
64 xcb_randr_select_input(conn, root, 65 xcb_randr_select_input(conn, root,
65 XCB_RANDR_NOTIFY_MASK_SCREEN_CHANGE | 66 XCB_RANDR_NOTIFY_MASK_SCREEN_CHANGE |
@@ -81,8 +82,9 @@ void _xinerama_init(void) {
81 82
82 cookie = xcb_xinerama_is_active(conn); 83 cookie = xcb_xinerama_is_active(conn);
83 reply = xcb_xinerama_is_active_reply(conn, cookie, NULL); 84 reply = xcb_xinerama_is_active_reply(conn, cookie, NULL);
84 if (!reply) 85 if (!reply) {
85 return; 86 return;
87 }
86 88
87 if (!reply->state) { 89 if (!reply->state) {
88 free(reply); 90 free(reply);