https://bugs.winehq.org/show_bug.cgi?id=49779
Bug ID: 49779 Summary: Main window position and size incorrect in SimSig (regression in Wine 5.16) Product: Wine Version: 5.16 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: albertpool@solcon.nl Distribution: ---
Created attachment 68090 --> https://bugs.winehq.org/attachment.cgi?id=68090 screenshot of fault
The main view in SimSig is placed in the top corner of the screen with a small size (1024x768) instead of being placed below the other windows and filling the screen.
This is a regression from Wine 5.15 to Wine 5.16. I hope to do a bisect soon.
https://bugs.winehq.org/show_bug.cgi?id=49779
--- Comment #1 from Albert Pool albertpool@solcon.nl --- Created attachment 68091 --> https://bugs.winehq.org/attachment.cgi?id=68091 How it should like (and did in Wine <= 5.15)
https://bugs.winehq.org/show_bug.cgi?id=49779
--- Comment #2 from Albert Pool albertpool@solcon.nl --- Bisected to the following commit:
c5ec1585f6e5211a2b63e3435748210552250534 is the first bad commit commit c5ec1585f6e5211a2b63e3435748210552250534 Author: Zhiyi Zhang zzhang@codeweavers.com Date: Tue Aug 25 15:20:39 2020 +0800
winex11.drv: Always update _NET_WM_STATE in update_net_wm_states().
https://bugs.winehq.org/show_bug.cgi?id=49779
--- Comment #3 from Albert Pool albertpool@solcon.nl --- (The small size of the screen is not 1024x768 as I originally guessed, it's 1440x879.)
https://bugs.winehq.org/show_bug.cgi?id=49779
Albert Pool albertpool@solcon.nl changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #68091|0 |1 is obsolete| |
--- Comment #4 from Albert Pool albertpool@solcon.nl --- Created attachment 68096 --> https://bugs.winehq.org/attachment.cgi?id=68096 screenshot before regression
https://bugs.winehq.org/show_bug.cgi?id=49779
Albert Pool albertpool@solcon.nl changed:
What |Removed |Added ---------------------------------------------------------------------------- Regression SHA1| |c5ec1585f6e5211a2b63e343574 | |8210552250534 CC| |albertpool@solcon.nl, | |zzhang@codeweavers.com
https://bugs.winehq.org/show_bug.cgi?id=49779
--- Comment #5 from Zhiyi Zhang zzhang@codeweavers.com --- Cannot reproduce. What window manager/distro/GPU/resolution are you using?
https://bugs.winehq.org/show_bug.cgi?id=49779
--- Comment #6 from Albert Pool albertpool@solcon.nl --- Thanks for taking the time to look into the bug. I use Linux Mint 18.2 with Cinnamon.
My monitor has a 1920x1200 resolution, GPU is Intel HD Graphics 620 (7th gen Core i5 CPU).
$ inxi -Gx Graphics: Card: Intel HD Graphics 620 bus-ID: 00:02.0 Display Server: X.Org 1.18.4 drivers: intel (unloaded: fbdev,vesa) Resolution: 1920x1200@59.95hz GLX Renderer: Mesa DRI Intel HD Graphics 620 (Kaby Lake GT2) GLX Version: 3.0 Mesa 18.0.5 Direct Rendering: Yes
https://bugs.winehq.org/show_bug.cgi?id=49779
Panard panard@inzenet.org changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |panard@inzenet.org
--- Comment #7 from Panard panard@inzenet.org --- Created attachment 68297 --> https://bugs.winehq.org/attachment.cgi?id=68297 output with WINEDEBUG=+x11drv,+winex11
We are experiencing a similar bug with Magic Online (.NET based) *using Cinnamon*: the position of the window regularly jumps to a fixed position; and when maximized steals the focus.
In the join the output with WINEDEBUG=+x11drv, you can see what is happening with wine 5.17:
$ wine /opt/mtgo/mtgo.exe [...] 01cc:trace:x11drv:create_whole_window making win 0x10082/0 managed [..] 01cc:trace:x11drv:X11DRV_WindowPosChanged win 0x10082 window (220,135)-(1460,875) client (220,135)-(1460,875) style 060f0000 flags 0000081d 01cc:trace:x11drv:set_mwm_hints 0x10082 setting mwm hints to 0,3e (style 60f0000 exstyle c0100) 01cc:trace:x11drv:sync_window_position win 0x10082/6e0000b pos 220,135,1240x740 after 5b4 changes=f serial=421 01cc:trace:x11drv:X11DRV_ExtEscape SET_DRAWABLE hdc 0x5900a2 drawable 6e0000a dc_rect (0,0)-(1260,757) 01cc:trace:x11drv:X11DRV_ExtEscape SET_DRAWABLE hdc 0x500ae drawable 6e0000b dc_rect (0,0)-(1240,740) 01cc:trace:x11drv:X11DRV_ExtEscape SET_DRAWABLE hdc 0x400bf drawable 6e0000b dc_rect (0,0)-(1240,740) 01cc:trace:x11drv:X11DRV_WindowPosChanged win 0x10082 window (220,135)-(1460,875) client (220,135)-(1460,875) style 160f0000 flags 00001847 01cc:trace:x11drv:set_mwm_hints 0x10082 setting mwm hints to 0,3e (style 160f0000 exstyle c0100) 01cc:trace:x11drv:sync_window_position win 0x10082/6e0000b pos 220,135,1240x740 after 5b4 changes=4f serial=425 01cc:trace:x11drv:X11DRV_WindowPosChanged win 0x10082 window (220,135)-(1460,875) client (220,135)-(1460,875) style 160f0000 flags 00001837 01cc:trace:x11drv:set_mwm_hints 0x10082 setting mwm hints to 0,3e (style 160f0000 exstyle c0100) 01cc:trace:x11drv:sync_window_position win 0x10082/6e0000b pos 220,135,1240x740 after 5b4 changes=f serial=430
(^----- this position gets somehow "saved") [...] (here I start dragging around the window)
01cc:trace:x11drv:X11DRV_WindowPosChanged win 0x10082 window (276,149)-(1516,889) client (276,149)-(1516,889) style 160f0000 flags 0000081d 01cc:trace:x11drv:X11DRV_WindowPosChanged win 0x10082 window (270,149)-(1510,889) client (270,149)-(1510,889) style 160f0000 flags 0000081d 01cc:trace:x11drv:X11DRV_WindowPosChanged win 0x10082 window (267,149)-(1507,889) client (267,149)-(1507,889) style 160f0000 flags 0000081d 01cc:trace:x11drv:X11DRV_WindowPosChanged win 0x10082 window (265,150)-(1505,890) client (265,150)-(1505,890) style 160f0000 flags 0000081d 01cc:trace:x11drv:X11DRV_WindowPosChanged win 0x10082 window (268,156)-(1508,896) client (268,156)-(1508,896) style 160f0000 flags 0000081d 01cc:trace:x11drv:X11DRV_WindowPosChanged win 0x10082 window (271,162)-(1511,902) client (271,162)-(1511,902) style 160f0000 flags 0000081d [...] 01cc:trace:x11drv:X11DRV_WindowPosChanged win 0x10082 window (148,150)-(1388,890) client (148,150)-(1388,890) style 160f0000 flags 0000081d 01cc:trace:x11drv:X11DRV_WindowPosChanged win 0x10082 window (150,149)-(1390,889) client (150,149)-(1390,889) style 160f0000 flags 0000081d 01e4:trace:x11drv:X11DRV_WindowPosChanged win 0x10082 window (150,149)-(1390,889) client (150,149)-(1390,889) style 160f0000 flags 0000001c
[...] (then I move the mouse elsewhere, and go back to the window)
01e4:trace:x11drv:set_mwm_hints 0x10082 setting mwm hints to 0,3e (style 160f0000 exstyle c0100) 01e4:trace:x11drv:update_net_wm_states setting wm state 0 for window 0x10082/6e0000d to 0 prev 0 01e4:trace:x11drv:update_net_wm_states setting wm state 1 for window 0x10082/6e0000d to 0 prev 0 01e4:trace:x11drv:update_net_wm_states setting wm state 2 for window 0x10082/6e0000d to 0 prev 0 01e4:trace:x11drv:update_net_wm_states setting wm state 3 for window 0x10082/6e0000d to 0 prev 0 01e4:trace:x11drv:update_net_wm_states setting wm state 4 for window 0x10082/6e0000d to 0 prev 0 01e4:trace:x11drv:sync_window_position win 0x10082/6e0000d pos 150,149,1240x740 after 56e changes=f serial=786 01e4:trace:x11drv:update_net_wm_states setting wm state 0 for window 0x10082/6e0000d to 0 prev 0 01e4:trace:x11drv:update_net_wm_states setting wm state 1 for window 0x10082/6e0000d to 0 prev 0 01e4:trace:x11drv:update_net_wm_states setting wm state 2 for window 0x10082/6e0000d to 0 prev 0 01e4:trace:x11drv:update_net_wm_states setting wm state 3 for window 0x10082/6e0000d to 0 prev 0 01e4:trace:x11drv:update_net_wm_states setting wm state 4 for window 0x10082/6e0000d to 0 prev 0 01cc:trace:x11drv:X11DRV_WindowPosChanged win 0x10082 window (220,135)-(1460,875) client (220,135)-(1460,875) style 160f0000 flags 0000081d 01e4:trace:x11drv:X11DRV_WindowPosChanged win 0x10082 window (220,135)-(1460,875) client (220,135)-(1460,875) style 160f0000 flags 0000001c
(^---- the window jumps to its old position)
01e4:trace:x11drv:set_mwm_hints 0x10082 setting mwm hints to 0,3e (style 160f0000 exstyle c0100) 01e4:trace:x11drv:update_net_wm_states setting wm state 0 for window 0x10082/6e0000d to 0 prev 0 01e4:trace:x11drv:update_net_wm_states setting wm state 1 for window 0x10082/6e0000d to 0 prev 0 01e4:trace:x11drv:update_net_wm_states setting wm state 2 for window 0x10082/6e0000d to 0 prev 0 01e4:trace:x11drv:update_net_wm_states setting wm state 3 for window 0x10082/6e0000d to 0 prev 0 01e4:trace:x11drv:update_net_wm_states setting wm state 4 for window 0x10082/6e0000d to 0 prev 0 01e4:trace:x11drv:sync_window_position win 0x10082/6e0000d pos 220,135,1240x740 after 5b4 changes=f serial=799 01e4:trace:x11drv:update_net_wm_states setting wm state 0 for window 0x10082/6e0000d to 0 prev 0 01e4:trace:x11drv:update_net_wm_states setting wm state 1 for window 0x10082/6e0000d to 0 prev 0 01e4:trace:x11drv:update_net_wm_states setting wm state 2 for window 0x10082/6e0000d to 0 prev 0 01e4:trace:x11drv:update_net_wm_states setting wm state 3 for window 0x10082/6e0000d to 0 prev 0 01e4:trace:x11drv:update_net_wm_states setting wm state 4 for window 0x10082/6e0000d to 0 prev 0 01d8:fixme:seh:NtQueryInformationThread ThreadIsIoPending info class not supported yet 01a4:fixme:seh:NtQueryInformationThread ThreadIsIoPending info class not supported yet 0250:fixme:seh:NtQueryInformationThread ThreadIsIoPending info class not supported yet 01cc:trace:x11drv:X11DRV_ExtEscape SET_DRAWABLE hdc 0x5900a2 drawable 6e0000d dc_rect (0,0)-(1240,740)
As reported in a previous comment, reverting to the commit prior to c5ec1585f6e5211a2b63e3435748210552250534 fixes the issue.
This bugs seems related to the Cinnamon WM, no problem with the other WMs I tested with (unity and xmonad); it could be interesting to try with gnome shell or related WMs. Switching wine to "emulate a virtual desktop" workarounds the issue as well.
It is sufficient to run wine 5.17 in a virtual machine with Ubuntu Cinnamon installed to reproduce the bug with Magic Online. I'll be happy to try patches or provide other debug traces, just let me know what may help tracking down the issue.
https://bugs.winehq.org/show_bug.cgi?id=49779
H. Lekin h.lekin@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |h.lekin@gmx.net
--- Comment #8 from H. Lekin h.lekin@gmx.net --- I am facing a potentially related bug with QuickDic 7.3 since Wine >= 5.16: - QuickDic window is now centered and smaller in size (also after input) - The window can not be resized propery (snaps back) - The output part of the window refreshes every second
Reverting to Wine 5.15 resolves the bug.
Window Manager: marco 1.24.1-1 Distro: NAME="Arch Linux", BUILD_ID=rolling GPU: Intel Corporation UHD Graphics 620 (rev 07) Resolution: 1920 x 1080, 60 Hz
https://bugs.winehq.org/show_bug.cgi?id=49779
--- Comment #9 from H. Lekin h.lekin@gmx.net --- Replaced the window manager: The issue does not occur with openbox 3.6.1-7
@zzhang: What information do the marco developers need to mend the fault ?
https://bugs.winehq.org/show_bug.cgi?id=49779
--- Comment #10 from Zhiyi Zhang zzhang@codeweavers.com --- (In reply to H. Lekin from comment #9)
Replaced the window manager: The issue does not occur with openbox 3.6.1-7
@zzhang: What information do the marco developers need to mend the fault ?
Not sure. it needs to be investigated specifically to each window manager.
https://bugs.winehq.org/show_bug.cgi?id=49779
Zhiyi Zhang zzhang@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |DUPLICATE Status|UNCONFIRMED |RESOLVED
--- Comment #11 from Zhiyi Zhang zzhang@codeweavers.com --- https://github.com/mate-desktop/marco/pull/679 should fix this. Marking as duplicate as https://bugs.winehq.org/show_bug.cgi?id=50381
*** This bug has been marked as a duplicate of bug 50381 ***
https://bugs.winehq.org/show_bug.cgi?id=49779
Albert Pool albertpool@solcon.nl changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #12 from Albert Pool albertpool@solcon.nl --- I'm not using Marco so my original issue is not yet resolved, but nevertheless I agree it's a duplicate. I'll keep any further discussion on #50381.