Set position also for windows with invisible parent (solves Wine
Bug 4960)
Juris Smotrovs
juris.smotrovs at sets.lv
Thu Mar 30 09:08:10 CST 2006
Changelog:
Juris Smotrovs <juris.smotrovs at sets.lv>
Set window position and send position change messages also
to windows with invisible parents (since Windows does so).
**********************
Index: dlls/x11drv/winpos.c
===================================================================
RCS file: /home/wine/wine/dlls/x11drv/winpos.c,v
retrieving revision 1.146
diff -u -r1.146 winpos.c
--- dlls/x11drv/winpos.c 7 Mar 2006 12:13:45 -0000 1.146
+++ dlls/x11drv/winpos.c 30 Mar 2006 14:54:10 -0000
@@ -1010,15 +1010,13 @@
if (showFlag) WIN_SetStyle( hwnd, WS_VISIBLE, 0 );
else WIN_SetStyle( hwnd, 0, WS_VISIBLE );
}
- else
- {
- /* ShowWindow won't activate a not being maximized child window */
- if ((style & WS_CHILD) && cmd != SW_MAXIMIZE)
- swp |= SWP_NOACTIVATE | SWP_NOZORDER;
- SetWindowPos( hwnd, HWND_TOP, newPos.left, newPos.top,
- newPos.right, newPos.bottom, LOWORD(swp) );
- }
+ /* ShowWindow won't activate a not being maximized child window */
+ if ((style & WS_CHILD) && cmd != SW_MAXIMIZE)
+ swp |= SWP_NOACTIVATE | SWP_NOZORDER;
+
+ SetWindowPos( hwnd, HWND_TOP, newPos.left, newPos.top,
+ newPos.right, newPos.bottom, LOWORD(swp) );
if (cmd == SW_HIDE)
{
More information about the wine-patches
mailing list