mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-06-14 19:18:30 +02:00
Revert "xwayland: Do not pretend leaving the X11 surface if buttons are down"
Kwin may send button events to Xwayland even when there is no Xwayland
surface with input focus.
With this change applied, that causes spurious input focus changes.
Let's revert it for the stable Xwayland branch for now.
This reverts commit d7745cca00.
Closes: https://gitlab.freedesktop.org/xorg/xserver/-/work_items/1883
Signed-off-by: Olivier Fourdan <ofourdan@redhat.com>
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/2179>
This commit is contained in:
parent
5a87395157
commit
03228e0020
1 changed files with 0 additions and 9 deletions
|
|
@ -3223,15 +3223,6 @@ sprite_check_lost_focus(SpritePtr sprite, WindowPtr window)
|
|||
if (master->lastSlave != get_pointer_device(xwl_seat))
|
||||
return !pointer_crossing;
|
||||
|
||||
/* If we left the surface with a button down, it means the wayland compositor
|
||||
* has grabbed the pointer so we will not get button release events from the
|
||||
* compositor, so leave the window processing untouched, so that we do not
|
||||
* end up with the wrong cursor, for example, when processing events once
|
||||
* the pointer enters the X11 surface again.
|
||||
*/
|
||||
if (master->button->buttonsDown)
|
||||
return FALSE;
|
||||
|
||||
if (xwl_seat->focus_window != NULL &&
|
||||
xwl_seat->cursor_confinement_window != NULL &&
|
||||
xwl_seat->focus_window != xwl_seat->cursor_confinement_window)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue