[PATCH v3 02/10] winex11.drv: Call XSetInputFocus only, whenever WM_TAKE_FOCUS is received.

Alexandre Julliard julliard at winehq.org
Tue Oct 8 03:55:13 CDT 2019


Rémi Bernon <rbernon at codeweavers.com> writes:

> This will trigger a normal FocusIn event for the corresponding window,
> which would then call set_focus.
>
> It makes the handling of Focus events simpler by avoiding different
> codepaths depending on whether or not WM_TAKE_FOCUS is used. We can
> then also safely delay the WM_ACTIVATE messages without delaying the
> input focus from the WM perspective.

The problem is that some window managers assign focus to the window
before sending WM_TAKE_FOCUS, even though they shouldn't. That's why we
have to ignore FocusIn when using take focus mode.

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list