New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
system.HasFocus returning true when minimized with task-bar while in Windowed-mode #2424
Comments
This doesn't seem to happen anymore, or doesn't happen on Windows 10.
Can anybody else confirm? |
It definitely happens for me on Win10, but only if I actually click on the game in the taskbar, it doesn't happen if I minimize it from top right corner. |
It's an issue with WM_ACTIVATEAPP being called back with "activating" state immediately after being called with the "deactivating" state, so this is more of a Windows issue. I have tested this with a 3rd party application, and the same issue persists, so not it's not just GMod. I guess it may actually be fixed on a newer Windows version, as I am not running the most up to date version. Still would like some confirmations from other people, one way or the other. |
On Windows 10 1909 at least, it looks like you're right. Interesting bug. |
I've just tested the steps in the original post and I can confirm it does happen. I'm on Windows 10 20H2 (Build 19042.330) using Garry's Mod 2020.06.26 (Main branch) ( |
I guess I will try replacing WM_ACTIVATEAPP with WM_ACTIVATE which doesn't seem to suffer from this issue. Let me know if any issues arise from this. |
Windows 7 with non-Dev branch.
Reproduction steps:
sv_cheats 1
lua_run_cl timer.Simple(4, function() chat.AddText(tostring(system.HasFocus())) end)
It's obviously not a game-breaking bug, but it might as well be reported.
The text was updated successfully, but these errors were encountered: