screen: Make sure we always have a screen
commitfd8f2e23eeeec8d77f997d63b229fdc861beff03
authorUli Schlachter <psychon@znc.in>
Fri, 27 Sep 2013 21:07:33 +0000 (27 23:07 +0200)
committerUli Schlachter <psychon@znc.in>
Fri, 27 Sep 2013 21:07:33 +0000 (27 23:07 +0200)
tree387f189c3c0c18553505280768adb8fbe97ec2e3
parent17038017289b662ac2af81580a91dfc122745fac
screen: Make sure we always have a screen

It is possible to configure RANDR so that no outputs are available. This means
awesome would be running with zero screens which leads to all kinds of
funnyness.

Work around this by falling back to other configuration mechanisms if we get no
screens from one of them. After all, screen_scan_x11() will always be able to
add a screen.

Signed-off-by: Uli Schlachter <psychon@znc.in>
screen.c