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
rescreen runs on event hook when there (probably) is no relevant change to screen display configuration. #243
Comments
You can achieve the same thing by setting
Whenever But, and that's a big bold but, you shouldn't do this. When ConfigureEvent is being delivered to xmonad, it's already too late. By then, the screen layout has already been changed, and having xmonad ignore it will only make things worse. Something else in your system is reacting to the TV being connected and calling xrandr to change the layout, and you need to address that, not make xmonad ignore the changes that already happened. |
Thanks for the info.. ignoring the event seems to work for me in practise though even if it isn't optimal. The TV turns up as a disabled output when it's turned on so it should not affect layout. I also use a static xorg.conf setting for all scaling and resolutions so no auto setup for newly connected displays should happen. Visualised by nvidia-settings: tv on: tv off: xrandr (with TV on, only difference is that HDM-1 is connected or NC when TV is off):
|
Oh, I see. You're getting a And if we actually wanted to fix this in xmonad somehow, rather than making rescreen optional (well, it already kind of is as you can use the But I'm not sure if this warrants adding another field to the |
Just have to remember to rescreen manually when I actually need or want it to happen. ref: xmonad/xmonad#243
Problem Description
When I turn on my TV which is connected to multiple devices including my desktop computer XMonad runs 'rescreen' which causes some issues with layout being reset and panels being moved around. The layout issue is probably mostly because I use XMonad.Layout.LayoutScreens but the panels (a bunch of xmobar's) moving around I am not so sure about.
The root issue is that when the TV is turned on it's detected by X as a new display even if the TV itself is turned to a different channel where another computer is connected and X never adds the newly connected display to screen 0.
Configuration File
uncommenting this line in Main.hs seems to work for not :
Checklist
I've read CONTRIBUTING.md
I tested my configuration with xmonad-testing
The text was updated successfully, but these errors were encountered: