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.
https://bugs.winehq.org/show_bug.cgi?id=50410
Zebediah Figura z.figura12@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |z.figura12@gmail.com
--- Comment #1 from Zebediah Figura z.figura12@gmail.com --- The sample application works for me, with wine 6.0-rc4 and KWin 5.20.4. What window manager are you using?
https://bugs.winehq.org/show_bug.cgi?id=50410
--- Comment #2 from Rafał Harabień rafalh92@outlook.com --- I am using Cinnamon desktop environment and Muffin window manager (default in Linux Mint).
https://bugs.winehq.org/show_bug.cgi?id=50410
cip cipman@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |cipman@gmail.com
--- Comment #3 from cip cipman@gmail.com --- I wonder if this is related to what I experienced after upgrading to wine 6 also in Linux Mint with Muffin, described at https://forum.winehq.org/viewtopic.php?f=8&t=34823 I found that the issue depends on the window manager: "Mutter (Muffin)" in Mint Cinnamon and "Marco" in Mint Mate and Ubuntu Mate. In Mint Mate you can switch the window managers and the issue manifests or not depending on the WM.
https://bugs.winehq.org/show_bug.cgi?id=50410
--- Comment #4 from Rafał Harabień rafalh92@outlook.com --- I bisected it to commit c5ec1585f6e5211a2b63e3435748210552250534: winex11.drv: Always update _NET_WM_STATE in update_net_wm_states().
https://bugs.winehq.org/show_bug.cgi?id=50410
Rafał Harabień rafalh92@outlook.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |zzhang@codeweavers.com