From: Rafał Kucharski vaxry@vaxry.net
Windows ignores those requests. Fixes bug #20190
Signed-off-by: Rafał Kucharski vaxry@vaxry.net --- dlls/win32u/window.c | 8 ++++++++ 1 file changed, 8 insertions(+)
diff --git a/dlls/win32u/window.c b/dlls/win32u/window.c index 69dd8caba5d..ad2b62dcfde 100644 --- a/dlls/win32u/window.c +++ b/dlls/win32u/window.c @@ -3410,6 +3410,14 @@ BOOL set_window_pos( WINDOWPOS *winpos, int parent_x, int parent_y ) } }
+ if (winpos->hwndInsertAfter == HWND_TOPMOST || winpos->hwndInsertAfter == HWND_NOTOPMOST) + { + /* Fixes bug #20190, Windows ignores these windows' geometry sets */ + DWORD style = get_window_long(winpos->hwnd, GWL_STYLE); + + if ((style & (WS_POPUP | WS_CHILD)) == WS_CHILD) return TRUE; + } + /* Make sure that coordinates are valid for WM_WINDOWPOSCHANGING */ if (!(winpos->flags & SWP_NOMOVE)) {