Handle outputs with "unknown connection" as "off".

This commit is contained in:
Maciej Sitarz 2012-02-12 14:10:06 +01:00 committed by Stefan Tomanek
parent 8f54947a04
commit 10ec66f3c2

View File

@ -126,7 +126,8 @@ current_cfg_xrandr() {
next;
}
# disconnected or disabled displays
/^[^ ]+ (dis)?connected / {
/^[^ ]+ (dis)?connected / ||
/^[^ ]+ unknown connection / {
print "output "$1;
print "off";
next;