Hofknecht / SystemTrayMenu

SystemTrayMenu - Browse and open your files easily
http://hofknecht.eu/systemtraymenu/
GNU General Public License v3.0
642 stars 45 forks source link

[BUG] Fix location taskbaform #455

Open Hofknecht opened 1 year ago

Hofknecht commented 1 year ago

@topeterk reported

2022-09-27 23_18_50-Window

we should probably move it directly under first screen, instead next to it

topeterk commented 1 year ago

I'm testing with a separate workspace at the moment but what was working for me: Get virtual desktop height via NativeMethods.GetSystemMetrics(SM_CYVIRTUALSCREEN) and move window by its size to place it out of screen. But that it gets rendered correctly once, I had to postpone the move by 0.5sec after the loaded event. (just in case that the idea doesn't get lost before I finish)

not the ideal solution but it will move it out of screen better than before and the window can render a borderless image, so it will be shown a fancy little STM icon :)

topeterk commented 11 months ago

Timer was removed https://github.com/Hofknecht/SystemTrayMenu/commit/81e20d618b3da6660630ff40cf6afb56ab0a69f9#diff-2879637853aa2e3ae42f4a8be895da160f032086e88293a8ab599379d01bacbdL59-L70 and replaced with the ContentRendered event: https://github.com/Hofknecht/SystemTrayMenu/commit/81e20d618b3da6660630ff40cf6afb56ab0a69f9#diff-2879637853aa2e3ae42f4a8be895da160f032086e88293a8ab599379d01bacbdR57-R64 Maybe in v1 something similar is possible?