-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nitrogen --restore
does not work if one of the external monitors is disconnected.
#55
Comments
I'm not too familiar with using xrandr to enable/disable monitors - does this use Xinerama/TwinView or regular independent X displays? |
It uses Xinerama. I'm using a laptop with intel CPU and videocard. |
Yeah, I know what's causing it then. In the config file, for Xinerama, it uses I've actually just received a laptop from work (my first in many years), so I'll be able to replicate soon. |
@denilsonsa Please give this fix a try if you can. The code was only considering Xinerama if there was more than one screen available - it's been relaxed now. It might affect non-xinerama setups, but I don't have a working setup in that mode anymore and kind of think most of the userbase also wouldn't. |
I can confirm, this is fixed. Thanks! |
How to reproduce:
xrandr
(orarandr
) to setup a second monitor.nitrogen
to set a different wallpaper (or the same one) for each of your 2 screens.nitrogen --restore
. It works.nitrogen --restore
. It fails because it can't find the second monitor.Expected: it should gracefully ignore non-connected screens. Optionally, it could print a message saying that such screen was being ignored.
It is worth noting that, in my config file, the first item was number 1, and the second was number 0. I haven't tried if the order is different, and the order should alter the behavior.
The text was updated successfully, but these errors were encountered: