From: Michael Stapelberg Date: Thu, 24 Nov 2011 23:49:35 +0000 (+0000) Subject: Bugfix: Fix startup when RandR is not present X-Git-Tag: 4.1.1~31^2 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=227a58b0c30a438e36ee8318c0d20079777f063d;p=i3%2Fi3 Bugfix: Fix startup when RandR is not present --- diff --git a/src/randr.c b/src/randr.c index b8907b95..68e8457f 100644 --- a/src/randr.c +++ b/src/randr.c @@ -845,9 +845,10 @@ void randr_init(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(); + return; + } else randr_query_outputs(); if (event_base != NULL) *event_base = extreply->first_event;