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
This commit is contained in:
Michael Stapelberg 2015-08-25 20:09:56 +02:00
parent f1bb9524ca
commit 1a9a9cc68d
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; 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) | bool updated = update_if_necessary(&(new->rect.x), crtc->x) |
update_if_necessary(&(new->rect.y), crtc->y) | update_if_necessary(&(new->rect.y), crtc->y) |
update_if_necessary(&(new->rect.width), crtc->width) | update_if_necessary(&(new->rect.width), crtc->width) |