On Mon Nov 17 09:31:30 2025 +0000, Rémi Bernon wrote:
Should we then maybe reduce the flag scope to this?
if (is_window( previous )) { win_set_flags(previous, WIN_IS_DEACTIVATING, 0); send_message( previous, WM_NCACTIVATE, FALSE, (LPARAM)hwnd ); send_message( previous, WM_ACTIVATE, MAKEWPARAM( WA_INACTIVE, is_iconic(previous) ), (LPARAM)hwnd ); win_set_flags(previous, 0, WIN_IS_DEACTIVATING); }
What about the `WM_ACTIVATEAPP` message? It shouldn't be able to reactivate it either.