Grabacr07 / SylphyHorn

Virtual Desktop Tools for Windows 10.
MIT License
389 stars 84 forks source link

"Sticky window" or "Pin window" Feature #12

Open GitMyCode opened 8 years ago

GitMyCode commented 8 years ago

Hi, great work by the way!

I did a "pin window" or a "sticky window" feature. I noticed too late that you already made a branch that does just that, but the concept is the same: put the handles in a hashset and move them to the next virtual desktop each time. The shortcut is "Ctrl + LWin + LAlt + P". I didn't added it to the shorcut menu yet.

The problem is when we try to move multiple window that comes from the same process. There seems to be a concurrent bug in the VDMHelper for this particular case. When it happen, the windows i tried to move, crash and close itself. It may be isolated to chromium base applications has it doesn't work with multiple instance of chrome, electron.js, atom.io or visual studio code, etc

So the only workaround I found is to move them with a delay between them so the VDMHelper can finish whatever it is doing. It is not the perfect solution but for now it work.

I really don't expect this to be merge has it is mainly to address this issue.