SystemTrayMenu
SystemTrayMenu copied to clipboard
[BUG] Fix location taskbaform
@topeterk reported
we should probably move it directly under first screen, instead next to it
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 :)
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?