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

Fail to switch to any desktop #85

Open
tanj opened this issue Dec 2, 2022 · 5 comments
Open

Fail to switch to any desktop #85

tanj opened this issue Dec 2, 2022 · 5 comments

Comments

@tanj
Copy link

tanj commented Dec 2, 2022

This was previously working for me, but suddenly today it started acting up. Started that it could only switch to desktop 2 and would not switch back. Now after rebooting it doesn't switch at all.

None of my switch desktop binds are working. However MoveCurrentWindowToDesktop(n) does work.

binds

#F1::switchDesktopByNumber(1)
#F2::switchDesktopByNumber(2)
#F3::switchDesktopByNumber(3)
#F4::switchDesktopByNumber(4)
#F5::switchDesktopByNumber(5)
#F6::switchDesktopByNumber(6)
#F7::switchDesktopByNumber(7)
#F8::switchDesktopByNumber(8)
#F9::switchDesktopByNumber(9)

#^n::switchDesktopToRight()
#^p::switchDesktopToLeft()
#^s::switchDesktopToRight()
#^a::switchDesktopToLeft()
#^tab::switchDesktopToLastOpened()

#^c::createVirtualDesktop()
#^d::deleteVirtualDesktop()

#^1::MoveCurrentWindowToDesktop(1)
#^2::MoveCurrentWindowToDesktop(2)
#^3::MoveCurrentWindowToDesktop(3)
#^4::MoveCurrentWindowToDesktop(4)
#^5::MoveCurrentWindowToDesktop(5)
#^6::MoveCurrentWindowToDesktop(6)
#^7::MoveCurrentWindowToDesktop(7)
#^8::MoveCurrentWindowToDesktop(8)
#^9::MoveCurrentWindowToDesktop(9)

#^Right::MoveCurrentWindowToRightDesktop()
#^Left::MoveCurrentWindowToLeftDesktop()

Log when attempting to switch to desktop 2 from desktop 1 and back.

No switching occurs. I need to bring up the Windows desktop switcher with Win+Tab to switch desktops

00000001	0.00000000	[9128] Current Process Id: 9128	
00000002	0.00009370	[9128] Current Session Id: 1	
00000003	0.02249850	[9128] The iterator is pointing at D544FAACE7046B43ACABB9AAC3A2F12B and count is 0.	
00000004	0.02258090	[9128] Current desktop number is 1 with an ID of D544FAACE7046B43ACABB9AAC3A2F12B.	
00000005	0.15112260	[9128] [right] target: 2 current: 2	
00000006	5.92473221	[9128] Current Process Id: 9128	
00000007	5.92476940	[9128] Current Session Id: 1	
00000008	5.92525434	[9128] The iterator is pointing at D544FAACE7046B43ACABB9AAC3A2F12B and count is 0.	
00000009	5.92528057	[9128] Current desktop number is 1 with an ID of D544FAACE7046B43ACABB9AAC3A2F12B.	
00000010	5.92547607	[9128] [invalid] target: 1 current: 1	
00000011	10.80857563	[9128] Current Process Id: 9128	
00000012	10.80870438	[9128] Current Session Id: 1	
00000013	10.80923176	[9128] The iterator is pointing at D544FAACE7046B43ACABB9AAC3A2F12B and count is 0.	
00000014	10.80937481	[9128] Current desktop number is 1 with an ID of D544FAACE7046B43ACABB9AAC3A2F12B.	
00000015	10.93558884	[9128] [right] target: 2 current: 2	

@tanj
Copy link
Author

tanj commented Dec 2, 2022

I was able to resolve this by applying the pull request from #84 and rebuilding the dll from https://github.com/Ciantic/VirtualDesktopAccessor after upgrading the project to platform toolset v142.

my fixed solution can be found at https://github.com/tanj/windows-desktop-switcher/tree/tanj

@weiss-d
Copy link

weiss-d commented Apr 29, 2023

@tanj I had the same problem and your solution helped. Big thanks!

@joaotavora
Copy link

joaotavora commented May 25, 2023

Same here. Thanks @tanj

@abdallahalsamman
Copy link

Same here. Thanks @tanj

@rodolpheAV
Copy link

Same problem, and this is perfectly working now. Thanks @tanj !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants