From 96c4dd93ddc01df0e2c26193af6f425ae594748c Mon Sep 17 00:00:00 2001 From: Simeon Simeonov Date: Wed, 20 Nov 2024 14:42:05 +0100 Subject: Sync with upstream --- randr.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'randr.c') 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) { free(randr_version); - if (event_base != NULL) + if (event_base != NULL) { *event_base = extreply->first_event; + } xcb_randr_select_input(conn, root, XCB_RANDR_NOTIFY_MASK_SCREEN_CHANGE | @@ -81,8 +82,9 @@ void _xinerama_init(void) { cookie = xcb_xinerama_is_active(conn); reply = xcb_xinerama_is_active_reply(conn, cookie, NULL); - if (!reply) + if (!reply) { return; + } if (!reply->state) { free(reply); -- cgit v1.3