Skip to content
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

Switching to different desktop immediately switches back #210

Closed
nicolasdejong opened this issue Aug 17, 2018 · 10 comments
Closed

Switching to different desktop immediately switches back #210

nicolasdejong opened this issue Aug 17, 2018 · 10 comments
Assignees
Labels

Comments

@nicolasdejong
Copy link

This is probably caused by focusing the wrong window after switching.

It can be quite confusing because the background image change always lags for a second or two (4k screen, slow bg change, there's a ticket for that I think), so there is a lot of flashing and after a while you're back at the desktop you started at. Switching a second time generally works correctly (but by then I'm a mix of confused & annoyed).

My request would be to make the 'focus window on new desktop' optional via settings (unfortunately, because I love it when it works).

The basic idea of focusing a window on the desktop that was just switched to is sound. You would want to prevent typing in a window that is on a virtual screen that is not visible! Microsoft really made a mess of this virtual desktop paradigm (so fortunately we have zVirtualDesktop ;-))

Anyway, windows stealing focus is quite a problem in Windows anyway, as it is nicely described here:

https://news.ycombinator.com/item?id=13690732

@mzomparelli
Copy link
Owner

I've experienced the sudden jump back to the previous desktop when switching. I'm looking into this.

@mzomparelli mzomparelli self-assigned this Aug 17, 2018
@mzomparelli
Copy link
Owner

I published changes that I think should help this.

@mzomparelli
Copy link
Owner

The recent update (1.0.92.0) should prevent this from happening. Let me know if you it persists in 1.0.92. So far I haven't seen it.

@nicolasdejong
Copy link
Author

The update made things much worse for me. In two thirds of all cases the desktop switches back immediately (it was something like 10%). Sometimes a minimized window will open after switching.

So my request is to add an option in the configuration where for switching desktops the behavior is one of:

  • don't focus a window (this option gives the guarantee there will never be a backflip)
  • insert an alt-tab key event (this option I think should work most of the time)
  • the current behavior, which I think tries to remember what window was active in the target deskop a time that desktop was left

This way you can continue to experiment with better ways to focus a window, while for those of us where it is not working correctly can choose to disable it. Or you make it a checkbox and I'll press alt-tab myself after the switch.

@mzomparelli
Copy link
Owner

I'm sorry you're having issues. I do like your solution for this and will work on making it configurable. I've made some additional tweaks in 1.0.92.2. Can you confirm this is still a major issue for you in the most updated version?

@mzomparelli
Copy link
Owner

Update to 1.0.92.3 and test it out.

image

@nicolasdejong
Copy link
Author

Thanks Michael, much appreciated. However I think something is wrong with this implementation because if I choose 'Do Nothing' I have constant backflips. The 'Send Alt+Tab' works much better for me, but I still have to do 'Alt+Tab' myself after the desktop switch since the window on the 'old' desktop is still focused. The 'Focus Last Window' works ok and didn't notice any backflips in the time I tested this.

If I would guess, the current implementation:

shows 'Do Nothing' but acts 'Focus Last Window'
shows 'Focus Last Window' but acts 'Send Alt+Tab'
shows 'Send Alt+Tab' but acts 'Do Nothing'

Perhaps it's a sorting thing? Even so, I now have a solution where switching desktops works perfectly again. Thanks!

@mzomparelli
Copy link
Owner

They aren't mixed up. If you are still seeing the backflip with Do Nothing set then I think something else might be causing this. I'm going to continue testing this. I'll let you know what I figure out.

@mzomparelli
Copy link
Owner

I'm seeing the immediate switch-back when switching desktops. I'll be looking into this further and hope to have a fix soon.

@mzomparelli
Copy link
Owner

mzomparelli commented Jan 28, 2019

I just published 1.0.92.5 to try and fix this issue. Only Windows 10 1809 is supported in this build while I continue to test.

@mzomparelli mzomparelli pinned this issue Jan 28, 2019
@mzomparelli mzomparelli unpinned this issue Apr 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants