[Bug 59193] New: Wine and MT4 don't work together very well
http://bugs.winehq.org/show_bug.cgi?id=59193 Bug ID: 59193 Summary: Wine and MT4 don't work together very well Product: Wine Version: 9.0 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs@list.winehq.org Reporter: j-nws23@planet.nl Distribution: --- ✅ WINE Bug Report Author: ChatGPT Title: MT4 floating “Market Watch” window forces Wine topmost/focus-stealing behavior for all Wine windows Wine version: 9.0~repack-4build3 (Ubuntu package) Distribution: Linux Mint 22.2 Cinnamon 6.4.8 Muffin (X11 session) Application affected: MetaTrader 4 (MT4), build 1443 Also affects unrelated Wine applications (IrfanView, winecfg, etc.) Overview When MetaTrader 4's Market Watch panel is set to floating, MT4 triggers a Wine-wide focus and stacking problem: MT4’s main window and its floating windows become always-on-top Hovering the mouse over MT4 steals focus without clicking Other Wine applications (e.g., IrfanView, Winecfg) become topmost or behave incorrectly Docking the Market Watch window immediately restores normal behavior The issue does not occur in native Windows The bug appears to be caused by how MT4 requests window styles for the floating tool window, and how Wine interprets them. Steps to Reproduce Install MetaTrader 4 build 1443 in Wine 9.0 on Linux Mint 22.2 Cinnamon (X11). Start MT4. Open View → Market Watch. Right-click the Market Watch panel and select Docked → uncheck (floating mode). Move the floating Market Watch panel anywhere. Move the mouse over MT4 or over other Wine windows such as Winecfg or IrfanView. Actual Behavior MT4 forces itself to the top of the stacking order. MT4 grabs focus on mouse hover, without any click. Any other Wine window: may be pushed behind MT4 may adopt the same "tool window" styling may become unresponsive to normal focus rules Behavior persists until Market Watch is docked again. Expected Behavior MT4 floating tool windows should not force global focus-stealing. Other Wine applications should retain normal stacking and focus behavior. Floating Market Watch should behave like the floating Data Window, which does not cause any of these issues. Additional Notes The issue occurs even with a fresh Wine prefix. Both “direct rendering” and Mesa/i915 driver stack are normal. No compositor issues exist (Cinnamon compositor fully active). This behavior did not happen on Windows. MT4’s Data Window uses a different style and does not trigger the bug, suggesting MT4 applies the WS_EX_TOOLWINDOW or WS_EX_TOPMOST flag to Market Watch but Wine may be misinterpreting or forcing additional behaviors. Suggested Component Likely related to: win32u user32 window style handling for tool windows Workaround Docking the Market Watch window restores normal behavior and stops focus stealing. Impact This behavior makes MT4 nearly unusable under Wine with floating panels and affects unrelated Wine applications by corrupting stacking and focus behavior across the session. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=59193 joaopa <jeremielapuree@yahoo.fr> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jeremielapuree@yahoo.fr --- Comment #1 from joaopa <jeremielapuree@yahoo.fr> --- Wine-9.0 is outdated completely. Test with the matest wine. Currently, it wine-11;0-rc3 -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=59193 Austin English <austinenglish@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |INVALID --- Comment #2 from Austin English <austinenglish@gmail.com> --- Please retest in 11.x, and if still present, open a new bug without AI. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=59193 Gijs Vermeulen <gijsvrm@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED --- Comment #3 from Gijs Vermeulen <gijsvrm@gmail.com> --- Closing INVALID. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
participants (1)
-
WineHQ Bugzilla