https://bugs.winehq.org/show_bug.cgi?id=57886
Bug ID: 57886 Summary: Context menus may be positioned using the wrong window when a window is reparented Product: Wine Version: 9.22 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: minor Priority: P2 Component: winex11.drv Assignee: wine-bugs@winehq.org Reporter: irischer.posaunist@gmail.com Distribution: ---
Created attachment 78112 --> https://bugs.winehq.org/attachment.cgi?id=78112 Log output while opening context menus in nested, reparented windows
Context menus do not open in the expected location.
Since 9.22, there was a mouse bug (#57603) affecting yabridge-host.exe, an X11 bridge which uses several reparented windows to show a VST/CLAP plugin running in Windows inside of a Linux DAW view: Mouse events (clicks, etc.) were being located using the entire screen, and the small plugin window was using this (fullscreen absolute) coordinate from its origin to remap each mouse event.
In clearer terms, a plugin window dragged to the upper-left of the screen would function normally. Drag the window right by five centimeters, and mouse events would land five centimeters right of the cursor.
While there have been patches and a merge request (https://gitlab.winehq.org/wine/wine/-/merge_requests/7429) in progress fixing the cursor offset, context menus now have the opposite behavior. Their position is calculated as an offset in the smaller plugin window, and then they are drawn with this offset from the absolute screen origin.
Open a context menu while the plugin window is in the upper-left of the screen? It shows up in the correct place. Drag the window 5 centimeters right? The context menu will open 5 centimeters to the LEFT of the cursor.
I am attaching a log where I open a menu, move the window to the left, and open the menu again.
WINEDEBUG=+x11drv,+event,+cursor,+win,+msg,+message,+hid YABRIDGE_DEBUG_LEVEL=1+editor
https://bugs.winehq.org/show_bug.cgi?id=57886
PennRobotics irischer.posaunist@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |regression See Also| |https://bugs.winehq.org/sho | |w_bug.cgi?id=57603 URL| |https://github.com/robbert- | |vdh/yabridge/issues/382#iss | |uecomment-2615470212
https://bugs.winehq.org/show_bug.cgi?id=57886
Rémi Bernon rbernon@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |rbernon@codeweavers.com
--- Comment #1 from Rémi Bernon rbernon@codeweavers.com --- See https://github.com/robbert-vdh/yabridge/pull/405 which I think should fix this as well.
https://bugs.winehq.org/show_bug.cgi?id=57886
PennRobotics irischer.posaunist@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |NOTOURBUG
--- Comment #2 from PennRobotics irischer.posaunist@gmail.com --- Thanks. Latest revision at that link fixes context menu positioning.