Workspaces getting stuck on disabled monitors #12059
Unanswered
AliAhmad02
asked this question in
Bugs - Other
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello!
I have a very simple script that switches between my laptop's display and my external monitor. All it does is just disable the currently enabled monitor and enable the other one, as can be seen below:
The expected behavior is, of course, that when one monitor is disabled and the other is enabled, that all workspaces are moved to the only active monitor. And with the way it's written now, it works as expected.
However, the first time I wrote this script, I just happened to put the lines inside the two if statements in the opposite order of what they are now. I.e. I switch from the active monitor to the disabled monitor by briefly having both disabled and then enabling the formerly disabled monitor, instead of briefly having both enabled and then disabling one of them. In the former case, the workspaces would not get correctly moved to the only active monitor, but would instead get stuck on the disabled one.
I realize that disabling all of your monitors and then enabling one of them is kind of a weird thing to do in the first place and in my case the fix was very simple. So maybe this doesn't matter at all and you are free to ignore it. But I just noticed it and thought it was weird (and I couldn't find anyone else mentioning this), so I thought maybe you'd like to know :)
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions