Revert "Check if output is disabled in handle_output()"

This reverts commit e71c304444.

It turns out that several users have workflows in which they turn off
their monitors without using e.g. `xrandr --output DP-1 --off`. The
result is that the monitors are disconnected, but not disabled.

With commit e71c304444, i3 started to see
these two states as one and the same state, but that causes more harm
than it does good. For example, for some users with only one monitor, i3
would just exit when these users turned off their monitor.

related to #1858, #1839

fixes #1845
next
Michael Stapelberg 2015-08-25 20:09:56 +02:00
parent f8d8acd93c
commit ce7d256d05
1 changed files with 0 additions and 6 deletions

View File

@ -555,12 +555,6 @@ static void handle_output(xcb_connection_t *conn, xcb_randr_output_t id,
return;
}
if (output->connection == XCB_RANDR_CONNECTION_DISCONNECTED) {
DLOG("Disabling output %s: it is disconnected\n", new->name);
new->to_be_disabled = true;
return;
}
bool updated = update_if_necessary(&(new->rect.x), crtc->x) |
update_if_necessary(&(new->rect.y), crtc->y) |
update_if_necessary(&(new->rect.width), crtc->width) |