Revert "Check if output is disabled in handle_output()"
This reverts commite71c304444
. 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 commite71c304444
, 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:
parent
f1bb9524ca
commit
1a9a9cc68d
|
@ -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) |
|
||||
|
|
Loading…
Reference in New Issue