Closed MadoScientist97 closed 2 weeks ago
hi @MadoScientist97, great work many thanks! Quick question: you didn't add any new undocumented Windows API calls right? For the total desktop count you use the already existing VirtualDesktopManagerInternal.GetCount() - so we don't need to retest all the variations of Win11 and Win10 API CLIDs... Just making sure we don't break anything. Also, the win32 methods you added work for Win10 and Win11 and all variations?
For the first question, about the win32 functions I used, they are pretty old and stable and I highly doubt would be yanked out anytime soon. The only limitation I can see is that this app will always have to be a desktop app, because calling those functions from the context of an UWP app isn't supported.
However those functions can be called on all apps that have a window drawn, just that the callee should be a desktop app.
For the second question yes I reused the already used count() methods, so it should not cause any issue but I only tested on windows 11 that too for 22H2 and 23H2, so some more testing would not be bad at all.
@dankrusi FYI
I'm experiencing an occasional glitch with the virtual desktop hotkeys. While the focus issue is resolved, [for example] sometimes hitting the hotkey for Desktop 4 sends me to Desktop 2 first. A second press then correctly switches me to Desktop 4. It's not constant, but it's happening fairly frequently, also it's crashing a lot ;(
Thanks for reporting, which build/version of windows are you using also please attach any logs. @ashish-bhardwaj-git
Hey I'm currently using windows 11 [23H2], I've built it again the crashing part is resolved but , desktop switching problem is still there.
@ashish-bhardwaj-git I have changed where the window handle is stored, can you build the project again with the latest commit and see if the focus issue is resolved?
@MadoScientist97 Thanks the issue with Switching desktops is resolved but, the focus part was working perfectly in you previous build, previously it remembered the window of a desktop now i have to press alt + tab or click on the window. [this was originally the issue].
I'm experiencing an occasional glitch with the virtual desktop hotkeys. While the focus issue is resolved, [for example] sometimes hitting the hotkey for Desktop 4 sends me to Desktop 2 first. A second press then correctly switches me to Desktop 4. It's not constant, but it's happening fairly frequently, also it's crashing a lot ;(
@MadoScientist97 it's still there unfortunately
Hi @ashish-bhardwaj-git was really busy with my job, I had actually forgot about this, I am getting back it this weekend. Lemme see what I can do. Trying to find if there is a os provided way to do it async on a desktop change event, not sure how well it will fit tho.
Hi @ashish-bhardwaj-git was really busy with my job, I had actually forgot about this, I am getting back it this weekend. Lemme see what I can do. Trying to find if there is a os provided way to do it async on a desktop change event, not sure how well it will fit tho.
Thanks for giving your time <3
Hi all, thanks for your work! Unfortunately due to my newborn at home I am not able to spend the proper amount of time verifying changes and pull requests or doing fixes at the moment. Does this PR overlap with https://github.com/dankrusi/WindowsVirtualDesktopHelper/pull/153?
I will publish new binaries this Friday. Best, -dan
Had been using it for a few months now and the fact that it doesn't automatically focuses when switching between the desktops was a huge pita, with me having to constantly hit alt+tab.
Main features added: The changes here, fixes that, by associating the last focused window to its virtual desktop number and refocusing on that window when coming back to that desktop.
Changes:
Additionally Incorporates changes suggested in this PR as well: https://github.com/dankrusi/WindowsVirtualDesktopHelper/pull/136