http://bugs.winehq.org/show_bug.cgi?id=14852
Summary: SetWindowPos, when called on Mac, moves the window even if SWP_NOMOVE is specified Product: Wine Version: 1.0.0 Platform: Macintosh OS/Version: Mac OS X 10.5 Status: UNCONFIRMED Severity: major Priority: P2 Component: user32 AssignedTo: wine-bugs@winehq.org ReportedBy: moe@hup.de
The following bug was found in the current stable version of wine when executed on Mac OS X with latest X11. The unstable testing versions also seem to contain it.
Our old windowing framework (zApp) calles DrawMenubar() after you've done modifications to the menu of an application.
DrawMenubar() itself calles
SetWindowPos( hWnd, 0, 0, 0, 0, 0, SWP_NOSIZE | SWP_NOMOVE | SWP_NOACTIVATE | SWP_NOZORDER | SWP_FRAMECHANGED );
This call moves the window approximately by the height of the title bar to the bottom.
If you omit the SWP_NOSIZE flag, the window is moved to 0,0 - if you enable it, the window is just moved down.
I gave this bug a major severtity as this effects nearly all of our applications. You can test it by just calling the SetWindowPos line above.