Bugfix: Initialize screens correctly when not using Xinerama (Thanks Mikael)
This commit is contained in:
parent
ca8a194c56
commit
a81108c527
|
@ -246,9 +246,7 @@ void initialize_xinerama(xcb_connection_t *conn) {
|
|||
if (!xcb_get_extension_data(conn, &xcb_xinerama_id)->present) {
|
||||
LOG("Xinerama extension not found, disabling.\n");
|
||||
disable_xinerama(conn);
|
||||
return;
|
||||
}
|
||||
|
||||
} else {
|
||||
xcb_xinerama_is_active_reply_t *reply;
|
||||
reply = xcb_xinerama_is_active_reply(conn, xcb_xinerama_is_active(conn), NULL);
|
||||
|
||||
|
@ -259,6 +257,7 @@ void initialize_xinerama(xcb_connection_t *conn) {
|
|||
query_screens(conn, virtual_screens);
|
||||
|
||||
FREE(reply);
|
||||
}
|
||||
|
||||
i3Screen *screen;
|
||||
num_screens = 0;
|
||||
|
|
Loading…
Reference in New Issue