Skip to content

Commit

Permalink
core: failed to ungrab server should be fatal
Browse files Browse the repository at this point in the history
Signed-off-by: Yuxuan Shui <[email protected]>
  • Loading branch information
yshui committed Mar 28, 2020
1 parent 23068c3 commit 3ba7a2a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/picom.c
Original file line number Diff line number Diff line change
Expand Up @@ -2096,7 +2096,8 @@ static session_t *session_init(int argc, char **argv, Display *dpy,

e = xcb_request_check(ps->c, xcb_grab_server_checked(ps->c));
if (e) {
log_fatal("Failed to grab X server");
log_fatal_x_error(e, "Failed to grab X server");
free(e);
goto err;
}

Expand All @@ -2113,8 +2114,9 @@ static session_t *session_init(int argc, char **argv, Display *dpy,

e = xcb_request_check(ps->c, xcb_ungrab_server(ps->c));
if (e) {
log_error_x_error(e, "Failed to ungrab server");
log_fatal_x_error(e, "Failed to ungrab server");
free(e);
goto err;
}

ps->server_grabbed = false;
Expand Down

0 comments on commit 3ba7a2a

Please sign in to comment.