Skip to content

Commit

Permalink
utils/process: initialize the used x extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
absolutelynothelix committed Nov 11, 2024
1 parent da1db39 commit ea391c2
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/utils/process.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,15 @@ int spawn_picomling(struct x_connection *c) {
setsid();

x_connection_init_xcb(c, new_c, screen);
xcb_prefetch_extension_data(c->c, &xcb_render_id);
xcb_prefetch_extension_data(c->c, &xcb_randr_id);
if (!x_extensions_init(c)) {
return -1;
}

if (!c->e.has_randr) {
log_error("The X server doesn't have the X RandR extension.");

return -1;
}

return 0;
}

0 comments on commit ea391c2

Please sign in to comment.