-
Notifications
You must be signed in to change notification settings - Fork 135
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
Last unfocused window in the target Virtual Desktop starts flashing after switching #19
Comments
I am able to replicate this when running my application standalone, however when I run my application with debug from Visual Studio the flashing doesn't occur. Hopefully that'll help track down the cause of this, would love to see a fix or suggestions for a workaround. Thanks for the library! |
@drzigman the library throws an exception telling to disable debug for me when I run it through VS. |
To fix this bug you need to kill focus for all of the windows on the desktop that you are leaving before you switch desktops.
I handle this in my app that you'll like a lot. |
Without unfocusing, the previous window on the previous workspace keeps focused. This causes all keyboard inputs captured by the previous window unless I explicitly change focus to the window on the current workspace (by e.g. Alt+Tab). This is very dangerous --- for example, the text editor focused previously in the previous workspace still gets keyboard input, destroying the editing text. Or, the web browser previously focused still has the focus, inserting random text into the text box on some web page. This can be solved by unfocusing all the windows on the previous workspace before switching. For reference: Grabacr07/VirtualDesktop#19 (comment)
If the last active window isn't in the target Virtual Desktop (the one we are switching to), the last window which had focus on the target Virtual Desktop starts flashing. This happened to me on version beta3.
Switching via Ctrl+Win+Arrow keys does not show the same behavior.
The text was updated successfully, but these errors were encountered: