http://bugs.winehq.org/show_bug.cgi?id=58433
Bug ID: 58433 Summary: entering sub-menus makes entire menu vanish behind main window in FL Studio (virtual desktop mode) Product: Wine Version: 10.11 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: win32u Assignee: wine-bugs@winehq.org Reporter: cyrus.valkonen@gmail.com Distribution: ---
When any menu is opened, such as "File ...", and then a nested sub-menu with more menu options such as "New from template ..." is hovered (not clicked) with the mouse to open it, the entire menu with sub-menu is suddenly rendered behind the main window (z-index issue?).
Consequently the user can no longer open files and can no longer access a lot of important menus in a lot of the DAWs functions, such as music sheet editor, pattern editor, etc.
In Wine 8.1 this bug does not occur, and must have been introduced somewhen after (my guess is version 9).
Please note that this issue does NOT relate to X11, because it happens with "Emulate a virtual desktop" checked.
I tried many things to work around it, including monkey-patching Wine 10.11 source, but everything is unsuccessful. Please note due to issues with VSTs, FL Studio needs very specific combos of NOT using DXVK, and not overriding d3dcompiler_47 or dxgi with winetricks. But even if used it makes no difference. There are NO OPTIONS in FL Studio that prevent this bug (such as unchecking ultrasmooth mode or disabling window animations). Only regressing to 8.1 fixes the bug.
In the logs you will see two "TQuickPopupMenuWindow" being opened. The first is the menu, the second is the sub-menu.
Many versions of FL Studio and Wine are affected by this. At least since FL 20 and Wine 9.
Sadly because of changes in Juce (used by many VSTs), a lot of new and critical VST plugins now do require a very recent Wine version. Thus falling back to Wine 8.1 is no longer viable.
http://bugs.winehq.org/show_bug.cgi?id=58433
--- Comment #1 from cyrus.valkonen@gmail.com --- Created attachment 78863 --> http://bugs.winehq.org/attachment.cgi?id=78863 Wine logs check TQuickPop
http://bugs.winehq.org/show_bug.cgi?id=58433
Ken Sharp imwellcushtymelike@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|win32u |-unknown
--- Comment #2 from Ken Sharp imwellcushtymelike@gmail.com ---
In Wine 8.1 this bug does not occur
A regression test will help pinpoint the change in Wine. https://gitlab.winehq.org/wine/wine/-/wikis/Regression-Testing
http://bugs.winehq.org/show_bug.cgi?id=58433
--- Comment #3 from cyrus.valkonen@gmail.com --- The regression occurs first from Wine 10.4 (not affected) to 10.5 (affected since then).
http://bugs.winehq.org/show_bug.cgi?id=58433
--- Comment #4 from cyrus.valkonen@gmail.com --- % git log --pretty=format:"%h %ad %s" --date=short wine-10.4..wine-10.5 -- dlls/win32u 3e9e6882e3d 2025-03-08 win32u: Remove unnecessary win32u_(get|set)_window_pixel_format exports. 2172cdf11ae 2025-03-06 win32u: Move WGL_ARB_pixel_format extension registration. f1cdb6ad7fe 2025-02-18 win32u: Call ActivateWindow callback when foreground window changes. 850eeb8c072 2025-02-19 win32u: Return foreground window changes from GetWindowStateUpdates.
TEST RESULTS ============
850eeb8c072: not bugged f1cdb6ad7fe: bugged 2172cdf11ae: bugged
http://bugs.winehq.org/show_bug.cgi?id=58433
--- Comment #5 from cyrus.valkonen@gmail.com --- Created attachment 78867 --> http://bugs.winehq.org/attachment.cgi?id=78867 reverts commit f1cdb6ad7fe which causes bug 58433
I tested this in FL Studio and it works.