https://bugs.winehq.org/show_bug.cgi?id=54269
Bug ID: 54269 Summary: WM_GETMINMAXINFO message should be sent when manually resizing the window Product: Wine Version: unspecified Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: winex11.drv Assignee: wine-bugs@winehq.org Reporter: 399989567@qq.com Distribution: ---
Created attachment 73834 --> https://bugs.winehq.org/attachment.cgi?id=73834 demo
In actual application, it may be necessary to limit the maximum or minimum size of the window. The maximum or minimum size of the window is controlled by the WM_GETMINMAXINFO message. Therefore, in a form that needs to control the maximum or minimum size of the window, this message needs to be mapped.
I wrote a 32-bit program running under Windows 10, when a WM_GETMINMAXINFO message is received, the text position of the output changes.
This works fine under windows10, but in wine, when the window is resized, the program cannot receive the WM_GETMINMAXINFO message
https://bugs.winehq.org/show_bug.cgi?id=54269
--- Comment #1 from 399989567@qq.com --- (In reply to 399989567 from comment #0)
Note that there is still a bug here, I limit the maximum and minimum size of the window, but this also does not take effect in wine.
The method used to limit the size: https://blog.csdn.net/freehawkzk/article/details/81662068
https://bugs.winehq.org/show_bug.cgi?id=54269
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |WONTFIX Status|UNCONFIRMED |RESOLVED
--- Comment #2 from Alexandre Julliard julliard@winehq.org --- You need to run in a virtual desktop, or unset the "allow the window manager to control the windows" option.
When the window is controlled by the X11 window manager there's no way for Wine to intercept the resize request.
https://bugs.winehq.org/show_bug.cgi?id=54269
--- Comment #3 from 399989567@qq.com --- (In reply to Alexandre Julliard from comment #2)
In fact I think it is true that the wine code is implemented, wine does not set the corresponding X property, I made changes in the function set_size_hints to solve this bug (not yet submitted, because I do not know how to submit)
But when I scale the window, the window will have the maximum and minimum size as designed, but the window will still not redraw (the output text position will not change)
Even if I unset the "allow the window manager to control the windows" option, the output text position still does not change
https://bugs.winehq.org/show_bug.cgi?id=54269
--- Comment #4 from 399989567@qq.com --- (In reply to 399989567 from comment #3)
In fact I think it is true that the wine code is implemented, wine does not
In fact I think this is a bug in the implementation of the wine code,
https://bugs.winehq.org/show_bug.cgi?id=54269
--- Comment #5 from Rafał Mużyło galtgendo@o2.pl --- (In reply to Alexandre Julliard from comment #2)
When the window is controlled by the X11 window manager there's no way for Wine to intercept the resize request.
intercept ? likely not, however as far as X11 goes, there's XSetWMNormalHints with PMinSize/PMaxSize...Not sure if it would get 100% of the desired effect, but some of it should be possible.
https://bugs.winehq.org/show_bug.cgi?id=54269
--- Comment #6 from 399989567@qq.com --- (In reply to Rafał Mużyło from comment #5)
Another problem is the problem of adjusting the window size but not refreshing the window content I mentioned
https://bugs.winehq.org/show_bug.cgi?id=54269
Gijs Vermeulen gijsvrm@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #7 from Gijs Vermeulen gijsvrm@gmail.com --- Closing WONTFIX.