8 Oct
2019
8 Oct
'19
8:55 a.m.
Rémi Bernon <rbernon(a)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(a)winehq.org