14 Nov
2025
14 Nov
'25
1:36 a.m.
On Wed Nov 12 17:32:18 2025 +0000, Santino Mazza wrote:
Sorry for the late reply. What would you suggest for keeping track of when the window is being deactivated? Should I add a new flag to the tagWND struct and set it in `set_active_window`? Also I found that, on Windows, calling SetActiveWindow directly while handling WM_ACTIVATE doesn't work, however calling SetForegroundWindow does work to activate the window, but it doesn't send a `WM_ACTIVATE` message with 0 wparam when it gets deactivated again which is weird. Yes a flag could probably work.
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/9398#note_121988