From 608842f50cde690d949495d5762a15a092ececbb Mon Sep 17 00:00:00 2001 From: Esme Povirk Date: Mon, 13 May 2024 16:04:38 -0500 Subject: [PATCH] win32u: Implement EVENT_SYSTEM_FOREGROUND. CW-Bug-ID: #23779. --- dlls/win32u/input.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dlls/win32u/input.c b/dlls/win32u/input.c index 9acdeb40388..7c4e0363281 100644 --- a/dlls/win32u/input.c +++ b/dlls/win32u/input.c @@ -1918,6 +1918,8 @@ static BOOL set_active_window( HWND hwnd, HWND *prev, BOOL mouse, BOOL focus ) if (hwnd) { + NtUserNotifyWinEvent( EVENT_SYSTEM_FOREGROUND, hwnd, 0, 0 ); + /* send palette messages */ if (send_message( hwnd, WM_QUERYNEWPALETTE, 0, 0 )) send_message_timeout( HWND_BROADCAST, WM_PALETTEISCHANGING, (WPARAM)hwnd, 0,