• Rémi Bernon's avatar
    winex11.drv: Do not react to keyboard grab focus events. · 4b81771b
    Rémi Bernon authored
    Several window managers are sending FocusOut with NotifyGrab mode
    then FocusOut with NotifyWhileGrabbed mode when a window focus is lost,
    as a consequence of grabbing the keyboard input before changing window
    focus.
    
    This is the case during alt-tab, but keyboard can also be grabbed when
    bringing activity view or clicking on the title bar. In this cases
    NotifyWhileGrabbed events aren't sent until the window really loses
    foreground.
    
    In the same manner, when focus is restored, they usually send FocusIn
    with NotifyWhileGrabbed mode followed by FocusIn with NotifyUngrab mode
    when the keyboard grab is released.
    
    When bringing activity view back and forth, or clicking on the title
    bar, only NotifyUngrab event will be sent.
    
    In order to be consistent across WM and to help simplifying focus
    handling, just ignore focus events related to keyboard grabs.
    Signed-off-by: 's avatarRémi Bernon <rbernon@codeweavers.com>
    Signed-off-by: 's avatarHuw Davies <huw@codeweavers.com>
    Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
    4b81771b
Name
Last commit
Last update
dlls Loading commit data...
documentation Loading commit data...
fonts Loading commit data...
include Loading commit data...
libs Loading commit data...
loader Loading commit data...
po Loading commit data...
programs Loading commit data...
server Loading commit data...
tools Loading commit data...
.editorconfig Loading commit data...
.mailmap Loading commit data...
ANNOUNCE Loading commit data...
AUTHORS Loading commit data...
COPYING.LIB Loading commit data...
LICENSE Loading commit data...
LICENSE.OLD Loading commit data...
MAINTAINERS Loading commit data...
Makefile.in Loading commit data...
README Loading commit data...
VERSION Loading commit data...
aclocal.m4 Loading commit data...
configure Loading commit data...
configure.ac Loading commit data...