diff options
| author | Simeon Simeonov | 2024-11-20 14:42:05 +0100 |
|---|---|---|
| committer | Simeon Simeonov | 2024-11-20 14:42:05 +0100 |
| commit | 96c4dd93ddc01df0e2c26193af6f425ae594748c (patch) | |
| tree | 6276453e9803fd73449e2da366f6941a39f607a3 /randr.c | |
| parent | 040c13e2b9b59895368930cd74d0943d43418383 (diff) | |
Sync with upstream
Diffstat (limited to 'randr.c')
| -rw-r--r-- | randr.c | 6 |
1 files changed, 4 insertions, 2 deletions
| @@ -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); |
