https://bugs.winehq.org/show_bug.cgi?id=50410
Bug ID: 50410 Summary: Changing window position/size programmatically does not work Product: Wine Version: 6.0-rc4 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: winex11.drv Assignee: wine-bugs@winehq.org Reporter: rafalh92@outlook.com Distribution: ---
Created attachment 69031 --> https://bugs.winehq.org/attachment.cgi?id=69031 sample-app
There is some regression in handling of window position/size changes from WinApi e.g. using SetWindowPos or MoveWindow. I attached source code of a simple app that does not work as expected for me in Wine 6.0-rc4. The same app works correctly when run under Wine 5.12. I'm testing in Linux Mint 20 (Xorg).
From my experiments (see sample app) it seems position/size set using
SetWindowPos or MoveWindow is ignored unless window is hidden or window style is changed after window creation and SWP_SHOWWINDOW flag is not used. I discovered the bug when using the windowed mode in the Dash Faction mod for the Red Faction game. It regressed some time ago but unfortunately I don't know exactly when.