Skip to content

(release/25.0) composite: Fix PanoramiX overlay window release - #3600

Open
metux wants to merge 1 commit into
release/25.0from
pr/release/25.0-composite-fix-panoramix-overlay-window-release-_2026-08-20_16-22-42
Open

(release/25.0) composite: Fix PanoramiX overlay window release#3600
metux wants to merge 1 commit into
release/25.0from
pr/release/25.0-composite-fix-panoramix-overlay-window-release-_2026-08-20_16-22-42

Conversation

@metux

@metux metux commented Aug 20, 2026

Copy link
Copy Markdown
Contributor

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

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>
@metux metux self-assigned this Aug 20, 2026
@metux
metux requested a review from a team August 20, 2026 14:24
metux pushed a commit that referenced this pull request Aug 20, 2026
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>
PR: #3600
@metux

metux commented Aug 20, 2026

Copy link
Copy Markdown
Contributor Author

🤖 Automated review — generated by Starfleet ship Discovery on behalf of @metux. Not a human review.

Clean correctness fix — no objections.

What it does: fixes the resource lookup in ProcCompositeReleaseOverlayWindow() for PanoramiX overlay windows. Two changes in the dixLookupResourceByType call:

  1. XRT_WINDOWX11_RESTYPE_WINDOW: PanoramiX overlay resources contain physical window IDs for each screen — these are regular X11 windows, not internal composite resources. Using the standard type constant ensures correct lookup semantics.

  2. DixUnknownAccessDixGetAttrAccess: downgrades the access level from "unknown" (which can bypass resource validation) to "get attributes" — the minimum permission needed for a release operation. This is the proper access class for a read-and-release pattern.

ABI impact: none. Internal composite code, no struct or export changes.

Backport candidate: debatable — resource lookup correctness fix. Not a crash per se, but using the wrong resource type could cause false matches or lookup failures on multi-screen PanoramiX configurations. Maintainer decides.

Verdict: passes review.

@metux metux added the bot-review-passed Automated bot review found no blocking issues label Aug 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bot-review-passed Automated bot review found no blocking issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant