https://bugs.winehq.org/show_bug.cgi?id=47715
Bug ID: 47715 Summary: Maximized Window size and location is incorrect if overridden by WM_GETMINMAXINFO or SetWindowPos Product: Wine Version: unspecified Hardware: x86 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: user32 Assignee: wine-bugs@winehq.org Reporter: danweiss@gmail.com Distribution: ---
Created attachment 65185 --> https://bugs.winehq.org/attachment.cgi?id=65185 Example WIN32 program that demonstrates the bug
Tested on Wine Staging 4.14 on MX Linux.
On Windows, you can use WM_GETMINMAXINFO, then a maximized window will appear with a specified size and location. Even though the window is considered Maximized, it is not necessarily covering up the whole screen.
You can also use SetWindowPos to move the maximized window to a specific location and size.
After calling SetWindowPos, the window will immediately move and resize. The next time the window is restored, then maximized, it will snap back to the coordinates specified in WM_GETMINMAXINFO.
When I run the test program on Windows 10, it create the window at location (256,256), with size 256x256, then moves it to location (512,256).
When I try this on Wine, Maximized means maximized, and the window fills the entire region that a maximized program would occupy. It does not take into account the maximized size specified in WM_GETMINMAXINFO or SetWindowPos.
Related bugs: 5941
https://bugs.winehq.org/show_bug.cgi?id=47715
--- Comment #1 from Dan Weiss danweiss@gmail.com --- I also tested GetWindowRect.
It returns the numbers that it is supposed to be returning, and claims that the window is 256x256 large, while the actual screen shows it at a full maximized size.
So now I'm confused to which component is messing up. Is it wine? Xorg? XFCE?
https://bugs.winehq.org/show_bug.cgi?id=47715
--- Comment #2 from Alexandre Julliard julliard@winehq.org --- Under X there's no way to specify the size of a maximized window, so all we can do is ask for a maximized window and let the window manager decide the size. If you really need that behavior (why?) you'd have to run in desktop mode.
https://bugs.winehq.org/show_bug.cgi?id=47715
Fabian Maurer dark.shadow4@web.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |dark.shadow4@web.de
https://bugs.winehq.org/show_bug.cgi?id=47715
winetaste@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |winetaste@gmx.net