Skip to content
Snippets Groups Projects
Forked from xorg / xserver
Source project has a limited visibility.
  • Olivier Fourdan's avatar
    723a48a3
    xwayland: confine motion events to the confined window · 723a48a3
    Olivier Fourdan authored
    
    When an X11 client has an active grab on the pointer, all events are
    reported relative to the window with the grab.
    
    For Xwayland, if an X11 client has a grab with a pointer confinement
    active, while pointer focus is on another window, motion events should
    not be reported to the client with the grab, because that sets the X11
    client appart, the events would be reported when the pointer is on any
    X11 window but not on Wayland native surfaces.
    
    Therefore, if the pointer is confined on a window and that window
    differs from the actual pointer focus window, just pretend we lost
    pointer focus to another window.
    
    Signed-off-by: default avatarOlivier Fourdan <ofourdan@redhat.com>
    xorg/xserver#962
    723a48a3
    History
    xwayland: confine motion events to the confined window
    Olivier Fourdan authored
    
    When an X11 client has an active grab on the pointer, all events are
    reported relative to the window with the grab.
    
    For Xwayland, if an X11 client has a grab with a pointer confinement
    active, while pointer focus is on another window, motion events should
    not be reported to the client with the grab, because that sets the X11
    client appart, the events would be reported when the pointer is on any
    X11 window but not on Wayland native surfaces.
    
    Therefore, if the pointer is confined on a window and that window
    differs from the actual pointer focus window, just pretend we lost
    pointer focus to another window.
    
    Signed-off-by: default avatarOlivier Fourdan <ofourdan@redhat.com>
    xorg/xserver#962
sound NaN GiB