https://bugs.winehq.org/show_bug.cgi?id=38765
Bug ID: 38765 Summary: VMR9 steals focus from within Wine Product: Wine Version: 1.7.38 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: quartz Assignee: wine-bugs@winehq.org Reporter: jasonwinter@hotmail.com Distribution: ---
When a graph transitions from pause to run with a VMR9 video window present (which has been owned by another window with put_Owner) the Wine window implementing VMR9 is incorrectly given focus. This will steal focus from an active window in a different process, and because the actual owner wasn't active, all focus is lost within the Wine subsystem.
I.E. Task bar says original app is focused, but that window title has gone grey, the VRM9 window title goes blue but nothing actually has focus.
Note, if the graph is run when the app owning the VMR9 is focused, everything works as normal including the Message-Drain API in VMR9, although focus is still lost from the app owner window. This possibly obscures this bug.
Note also, I think "other things" like altering mouse pointer visibility with mouse-move messages also cause the Wine window implementing VMR9 to gain focus, so simply moving the mouse over video output can steal focus from a different active application within Wine.