Commit graph xserver/Xext/composite/compext.c
Author SHA1 Message Date
Xinhao Liu
4e67bd4630 composite: Fix PanoramiX overlay window release
PanoramiX overlay resources contain physical window IDs for each
screen. Look them up as regular window resources when releasing the
client's overlay reference.

Signed-off-by: Xinhao Liu <liuxinhao@kylinsec.com.cn>
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/2259>
2026-10-19 14:14:29 +02:00
Mason Green
f7c5c4ad29 Xext: composite: take the pixmap reference before AddResource() on Xinerama
When AddResource() fails it calls the type's delete function, which for
pixmaps is dixDestroyPixmap() and drops one reference.

SingleCompositeNameWindowPixmap() increments pPixmap->refcnt before
AddResource(), so a failure only drops that extra reference. The Xinerama
path in ProcCompositeNameWindowPixmap() incremented it afterwards, so a
failure dropped the window's own reference to its backing pixmap and
could free it while still in use. Take the reference first, as the
single-screen path does.

Signed-off-by: Mason Green <mason@greenm01.net>
(cherry picked from commit 6240f6551c)
2026-10-13 13:05:30 +02:00
Enrico Weigelt, metux IT consult
2906b973a8 Xext: move remaining panoramix headers into panoramix subdir.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-06-17 19:01:48 +02:00
Enrico Weigelt, metux IT consult
6d6bd73647 composite: move it under Xext/
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-06-17 07:50:13 +02:00
Renamed from composite/compext.c (Browse further)