From a854a85f125cb34f972f31c0e8eff4ec273a15e6 Mon Sep 17 00:00:00 2001 From: Esme Povirk Date: Wed, 13 Mar 2024 19:21:23 +0000 Subject: [PATCH] win32u: Implement EVENT_OBJECT_LOCATIONCHANGE. --- dlls/win32u/window.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dlls/win32u/window.c b/dlls/win32u/window.c index 400500f34dc..967b47f7ca0 100644 --- a/dlls/win32u/window.c +++ b/dlls/win32u/window.c @@ -3545,6 +3545,10 @@ BOOL set_window_pos( WINDOWPOS *winpos, int parent_x, int parent_y ) winpos->cy = new_window_rect.bottom - new_window_rect.top; send_message( winpos->hwnd, WM_WINDOWPOSCHANGED, 0, (LPARAM)winpos ); } + + if ((winpos->flags & (SWP_NOMOVE|SWP_NOSIZE)) != (SWP_NOMOVE|SWP_NOSIZE)) + NtUserNotifyWinEvent( EVENT_OBJECT_LOCATIONCHANGE, winpos->hwnd, OBJID_WINDOW, 0 ); + ret = TRUE; done: SetThreadDpiAwarenessContext( context );