Find a file
Liu Heng 0e08e5083f xwayland: prevent X11 get enter event when pointer is over Wayland client
In Wayland, mouse coordinates are not updated after all x11 clients have left,
causing the mouse information to remain at the position left by the last x11
client. However, if CheckMotion is called at this point for other reasons
(such as window mapped, reactive, etc.), xwayland might continue to send enter
events to x11 clients, even if the mouse is actually on a Wayland client.

This MR introduces and checks pointer_enter_count to determine if the mouse
has left an x11 client and is now on a Wayland client. When it's confirmed
that the mouse is no longer on an x11 client but on a Wayland client,
returning TRUE in sprite_check_lost_focus causes XYToWindow to return to the
root window, preventing further enter events from being sent to x11 clients.

(cherry picked from commit e673a4bda0)
(cherry picked from commit 6bef11002f)

Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/2151>
2026-04-09 08:59:09 +00:00
.gitlab-ci
composite
damageext
dbe
dix dix: set errorValue correctly when XID lookup fails in ChangeGCXIDs() 2026-04-09 08:59:09 +00:00
doc
dri3
fb
glamor glamor: avoid double free in glamor_make_pixmap_exportable() 2026-04-09 08:59:08 +00:00
glx
hw xwayland: prevent X11 get enter event when pointer is over Wayland client 2026-04-09 08:59:09 +00:00
include xkb: Make the RT_XKBCLIENT resource private 2025-10-28 14:27:03 +01:00
man
mi
miext
os os: make FormatInt64() handle LONG_MIN correctly 2026-04-09 08:59:09 +00:00
present present: Fix use-after-free in present_create_notifies() 2025-10-28 14:27:03 +01:00
randr
record
render
test
Xext panoramix: avoid null dereference in PanoramiXConsolidate() 2026-04-09 08:59:08 +00:00
xfixes
Xi
xkb xkb: Prevent overflow in XkbSetCompatMap() 2025-10-28 14:27:03 +01:00
.appveyor.yml
.dir-locals.el
.gitignore
.gitlab-ci.yml
.mailmap
COPYING
meson.build meson: don't build xselinux if xace is disabled 2026-04-09 08:59:08 +00:00
meson_options.txt
README.md
SECURITY.md xwayland: Expunge the SECURITY.md file 2026-04-09 08:59:08 +00:00
xserver.ent.in

X Server

The X server accepts requests from client applications to create windows, which are (normally rectangular) "virtual screens" that the client program can draw into.

Windows are then composed on the actual screen by the X server (or by a separate composite manager) as directed by the window manager, which usually communicates with the user via graphical controls such as buttons and draggable titlebars and borders.

For a comprehensive overview of X Server and X Window System, consult the following article: https://en.wikipedia.org/wiki/X_server

All questions regarding this software should be directed at the Xorg mailing list:

https://lists.freedesktop.org/mailman/listinfo/xorg

The primary development code repository can be found at:

https://gitlab.freedesktop.org/xorg/xserver

For patch submission instructions, see:

https://www.x.org/wiki/Development/Documentation/SubmittingPatches

As with other projects hosted on freedesktop.org, X.Org follows its Code of Conduct, based on the Contributor Covenant. Please conduct yourself in a respectful and civilized manner when using the above mailing lists, bug trackers, etc:

https://www.freedesktop.org/wiki/CodeOfConduct