Closed jeffreye closed 5 years ago
Why not implement a timer that checks which desktop and sets the icon? This would allow it to work when using any method of switching desktops and would ensure the icon is displaying the correct desktop number.
I'm linking to mine where I use hotkeys for navigation and moving windows. It also supports pinning/unpinning windows with a hotkey. With my version I don't have a need for a context menu containing Move to Desktop items.
I've also implemented a system tray icon to indicate which desktop you are on.
Icon with desktop number ( Images from https://github.com/m0ngr31/VirtualDesktopManager) Switching desktop with animation (It only works if you click the menu to move window )