[Bug 38765] VMR9 steals focus from within Wine

wine-bugs at winehq.org wine-bugs at winehq.org
Wed Jun 17 02:31:47 CDT 2015


https://bugs.winehq.org/show_bug.cgi?id=38765

Jason <jasonwinter at hotmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |major

--- Comment #1 from Jason <jasonwinter at hotmail.com> ---
Changing importance to major.  Focus loss problems are significant I think, and
I've located some of the code in Wine causing this issue.

VMR_OnStartStreaming in vmr9.c contains the functions:

SetwindowPos & ShowWindow

Since I configure VMR9 to be windowless (as I use a clipping window) I would
expect these calls to use SWP_NOACTIVATE & SW_SHOWNA respectively in this mode.

Zapping the quartz.dll.so (as it was easy to locate the 0x06200000 flag for
SetWindowPos in two locations, the other one being in
VideoRenderer_AutoShowWindow in videorenderer.c) to 0x16200000 and the
following ShowWindow 0x05000000 flag to 0x08000000, stops the un-pausing of the
graph from stealing focus from other unrelated Wine applications.

I'm yet to locate the focus loss that occurs when the mouse moves over the
window and I show/hide the mouse pointer.  I do alter the renderer window size
by 1 pixel and back to fix an issue with the OverlayMixer in Windows (forces a
repaint of the overlay passthrough colour) when I do all this - so maybe that's
what triggers it.  Looking at the code though, those SetWindowPos calls for
resize do already use SWP_NOACTIVATE.  So it's a bit confusing.

-- 
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.



More information about the wine-bugs mailing list