• 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
..
Makefile.in Loading commit data...
bitblt.c Loading commit data...
brush.c Loading commit data...
clipboard.c Loading commit data...
desktop.c Loading commit data...
display.c Loading commit data...
event.c Loading commit data...
graphics.c Loading commit data...
ime.c Loading commit data...
init.c Loading commit data...
keyboard.c Loading commit data...
mouse.c Loading commit data...
mwm.h Loading commit data...
opengl.c Loading commit data...
palette.c Loading commit data...
pen.c Loading commit data...
settings.c Loading commit data...
systray.c Loading commit data...
version.rc Loading commit data...
vulkan.c Loading commit data...
window.c Loading commit data...
winex11.drv.spec Loading commit data...
wintab.c Loading commit data...
x11drv.h Loading commit data...
x11drv_main.c Loading commit data...
xcomposite.h Loading commit data...
xdnd.c Loading commit data...
xim.c Loading commit data...
xinerama.c Loading commit data...
xrandr.c Loading commit data...
xrender.c Loading commit data...
xvidmode.c Loading commit data...