keynavish icon indicating copy to clipboard operation
keynavish copied to clipboard

Grid drawn below other windows in some cases

Open lesderid opened this issue 5 years ago • 1 comments

If the process launching keynavish isn't foregrounded (i.e. doesn't own the window returned by GetForegroundWindow()), keynavish will be drawn below other windows.

We can't simply foreground the grid window, as this breaks windowzoom and causes the foreground window to be deactivated (which we may not want).

Another possible solution would be to set the foreground window to the grid window and then reset it back to the original one:

HWND originalWindow = GetForegroundWindow();
SetForegroundWindow(keynavishWindow);
SetForegroundWindow(originalWindow);

However, this seems to be visually glitchy.

lesderid avatar Jan 25 '21 03:01 lesderid

This issue seems to be more frequent on Windows Server 2019 (so probably Windows 10 too) than on Windows 8.1. Suggestions very welcome.

lesderid avatar Dec 23 '21 21:12 lesderid

This seems to have been fixed by f4dd77953e65f15d3920a89958f57eef9362676d, but I'm not sure if it works in all cases.

lesderid avatar Dec 31 '22 20:12 lesderid