diff options
author | emersion <contact@emersion.fr> | 2018-07-12 12:47:12 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-12 12:47:12 +0100 |
commit | d8bbdf3bd5edce03c550bb0982ac997392ac5711 (patch) | |
tree | 33ee06b7d9fb6daa41835a5ab5a13ca0764dcd4e /backend/x11/output.c | |
parent | e226e2c01154f3c7d9481655684417635e003c38 (diff) | |
parent | 40fe252c2dea81c5a248c16b6c1b80e57b6a6a70 (diff) |
Merge pull request #1128 from agx/unbreak-xvfb
Unbreak xvfb
Diffstat (limited to 'backend/x11/output.c')
-rw-r--r-- | backend/x11/output.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/backend/x11/output.c b/backend/x11/output.c index 9f8918ab..151807dd 100644 --- a/backend/x11/output.c +++ b/backend/x11/output.c @@ -47,8 +47,16 @@ static bool output_set_custom_mode(struct wlr_output *wlr_output, output_set_refresh(&output->wlr_output, refresh); const uint32_t values[] = { width, height }; - xcb_configure_window(x11->xcb_conn, output->win, + xcb_void_cookie_t cookie = xcb_configure_window_checked(x11->xcb_conn, output->win, XCB_CONFIG_WINDOW_WIDTH | XCB_CONFIG_WINDOW_HEIGHT, values); + + xcb_generic_error_t *error; + if ((error = xcb_request_check(x11->xcb_conn, cookie))) { + wlr_log(WLR_ERROR, "Could not set window size to %dx%d\n", width, height); + free(error); + return false; + } + return true; } |