Bugfix: Properly call init_workspaces() when RandR is known but not present

This commit is contained in:
Michael Stapelberg 2010-10-23 17:18:59 +02:00
parent 2447236110
commit af9749b1b9

View File

@ -523,9 +523,13 @@ void initialize_randr(xcb_connection_t *conn, int *event_base) {
const xcb_query_extension_reply_t *extreply;
extreply = xcb_get_extension_data(conn, &xcb_randr_id);
if (!extreply->present)
if (!extreply->present) {
disable_randr(conn);
else randr_query_outputs(conn);
init_workspaces();
return;
}
randr_query_outputs(conn);
if (event_base != NULL)
*event_base = extreply->first_event;