Commit graph

22,889 commits

Author SHA1 Message Date
Peter Hutterer
c03ad0c2f9 panoramiX: fail if we can't allocate our visual arrays
Some checks are pending
Build X servers / xserver-build-ubuntu (push) Waiting to run
Build X servers / drivers-build-ubuntu (push) Waiting to run
Build X servers / xserver-build-mingw32-ubuntu (push) Waiting to run
Build X servers / xserver-build-macos (push) Waiting to run
Build X servers / xserver-build-freebsd (push) Waiting to run
Build X servers / xserver-build-dragonflybsd (push) Waiting to run
Build X servers / xserver-build-netbsd (push) Waiting to run
Build X servers / xserver-build-cygwin (push) Waiting to run
Build X servers / Check Signed-Off-By (push) Waiting to run
Build X servers / Release pushed tag (push) Blocked by required conditions
check PRs for merge conflicts / notify (push) Waiting to run
This code has failed for decades by triggering a segfault, let's not
bother figuring out the perfect cleanup path.

Co-Authored-by: Claude Code <noreply@anthropic.com>
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/2184>
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-04-30 19:19:15 +02:00
Enrico Weigelt, metux IT consult
1302fed4ae xkb: XkbAddGeomProperty(): handle OOM on strdup()
Some checks are pending
Build X servers / xserver-build-ubuntu (push) Waiting to run
Build X servers / drivers-build-ubuntu (push) Waiting to run
Build X servers / xserver-build-mingw32-ubuntu (push) Waiting to run
Build X servers / xserver-build-macos (push) Waiting to run
Build X servers / xserver-build-freebsd (push) Waiting to run
Build X servers / xserver-build-dragonflybsd (push) Waiting to run
Build X servers / xserver-build-netbsd (push) Waiting to run
Build X servers / xserver-build-cygwin (push) Waiting to run
Build X servers / Check Signed-Off-By (push) Waiting to run
Build X servers / Release pushed tag (push) Blocked by required conditions
check PRs for merge conflicts / notify (push) Waiting to run
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-04-30 18:53:53 +02:00
stefan11111
36b677cfd1 glamor: xfree86/glamor_egl: Add default dixprivate storage for glamor_egl's private data
This allows glamor to fully manage it's resources and not leak or use-after-free.

Users of glamor_egl now just need to pass a ScreenPtr,
without having to manage glamor_egl's memory

Signed-off-by: stefan11111 <stefan11111@shitposting.expert>
2026-04-30 18:45:54 +02:00
Peter Hutterer
479d2ca741 mi: Handle allocation failure in XYToWindow() spriteTrace realloc
Some checks are pending
Build X servers / xserver-build-ubuntu (push) Waiting to run
Build X servers / drivers-build-ubuntu (push) Waiting to run
Build X servers / xserver-build-mingw32-ubuntu (push) Waiting to run
Build X servers / xserver-build-macos (push) Waiting to run
Build X servers / xserver-build-freebsd (push) Waiting to run
Build X servers / xserver-build-dragonflybsd (push) Waiting to run
Build X servers / xserver-build-netbsd (push) Waiting to run
Build X servers / xserver-build-cygwin (push) Waiting to run
Build X servers / Check Signed-Off-By (push) Waiting to run
Build X servers / Release pushed tag (push) Blocked by required conditions
check PRs for merge conflicts / notify (push) Waiting to run
Co-Authored-by: Claude Code <noreply@anthropic.com>
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/2184>
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-04-30 18:32:07 +02:00
Enrico Weigelt, metux IT consult
30eae8f313 dix: devices: fix missing free in AddInputDevice()
When dixCallDeviceAccessCallback() rejects, we need to really clean up.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-04-30 18:21:21 +02:00
Peter Hutterer
e45a567255 Xi: add NULL checks to handle malloc failures
Some checks are pending
Build X servers / xserver-build-ubuntu (push) Waiting to run
Build X servers / drivers-build-ubuntu (push) Waiting to run
Build X servers / xserver-build-mingw32-ubuntu (push) Waiting to run
Build X servers / xserver-build-macos (push) Waiting to run
Build X servers / xserver-build-freebsd (push) Waiting to run
Build X servers / xserver-build-dragonflybsd (push) Waiting to run
Build X servers / xserver-build-netbsd (push) Waiting to run
Build X servers / xserver-build-cygwin (push) Waiting to run
Build X servers / Check Signed-Off-By (push) Waiting to run
Build X servers / Release pushed tag (push) Blocked by required conditions
check PRs for merge conflicts / notify (push) Waiting to run
Co-Authored-by: Claude Code <noreply@anthropic.com>
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/2184>
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-04-30 18:04:29 +02:00
Peter Hutterer
00a0ee60ff modesetting: add NULL check for drmModeObjectGetProperties in VRR check
Co-Authored-by: Claude Code <noreply@anthropic.com>
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/2184>
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-04-30 17:57:37 +02:00
Peter Hutterer
33e46b3087 Xi: Fix XIPassiveGrab handling of keycodes > 255
This was fixed in commit 51eb63b0ee but woefully badly. Instead of returning
XIAlreadyGrabbed via the Reply, it simply returned the value from the
request handler - causing the server to interpret it as BadRequest.

Fix it and do what we intended to do instead.

Fixes: 51eb63b0ee ("Xi: disallow passive grabs with a detail > 255")
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/2186>
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-04-30 17:57:02 +02:00
Enrico Weigelt, metux IT consult
41c6b07998 dix: AddInputDevice(): fix missing dixFreePrivates() on allocation failure
Some checks are pending
Build X servers / xserver-build-ubuntu (push) Waiting to run
Build X servers / drivers-build-ubuntu (push) Waiting to run
Build X servers / xserver-build-mingw32-ubuntu (push) Waiting to run
Build X servers / xserver-build-macos (push) Waiting to run
Build X servers / xserver-build-freebsd (push) Waiting to run
Build X servers / xserver-build-dragonflybsd (push) Waiting to run
Build X servers / xserver-build-netbsd (push) Waiting to run
Build X servers / xserver-build-cygwin (push) Waiting to run
Build X servers / Check Signed-Off-By (push) Waiting to run
Build X servers / Release pushed tag (push) Blocked by required conditions
check PRs for merge conflicts / notify (push) Waiting to run
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-04-30 17:53:35 +02:00
Peter Hutterer
a3fd529207 os/client: fix kvm handle leak and NULL dereferences on OpenBSD
Some checks are pending
Build X servers / xserver-build-ubuntu (push) Waiting to run
Build X servers / drivers-build-ubuntu (push) Waiting to run
Build X servers / xserver-build-mingw32-ubuntu (push) Waiting to run
Build X servers / xserver-build-macos (push) Waiting to run
Build X servers / xserver-build-freebsd (push) Waiting to run
Build X servers / xserver-build-dragonflybsd (push) Waiting to run
Build X servers / xserver-build-netbsd (push) Waiting to run
Build X servers / xserver-build-cygwin (push) Waiting to run
Build X servers / Check Signed-Off-By (push) Waiting to run
Build X servers / Release pushed tag (push) Blocked by required conditions
check PRs for merge conflicts / notify (push) Waiting to run
And remove a redundant argv == NULL check

Co-Authored-by: Claude Code <noreply@anthropic.com>
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/2184>
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-04-30 16:36:51 +02:00
Enrico Weigelt, metux IT consult
eb2c8234e8 xkb: zero out structs and arrays
Some checks are pending
Build X servers / xserver-build-ubuntu (push) Waiting to run
Build X servers / drivers-build-ubuntu (push) Waiting to run
Build X servers / xserver-build-mingw32-ubuntu (push) Waiting to run
Build X servers / xserver-build-macos (push) Waiting to run
Build X servers / xserver-build-freebsd (push) Waiting to run
Build X servers / xserver-build-dragonflybsd (push) Waiting to run
Build X servers / xserver-build-netbsd (push) Waiting to run
Build X servers / xserver-build-cygwin (push) Waiting to run
Build X servers / Check Signed-Off-By (push) Waiting to run
Build X servers / Release pushed tag (push) Blocked by required conditions
check PRs for merge conflicts / notify (push) Waiting to run
Just to be on the safe side: prevent potential leaks.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-04-30 15:18:58 +02:00
Jeremy Huddleston Sequoia
e8a491066b rootless: Add Trapezoids, Triangles, and CompositeRects wrapping
Some checks are pending
Build X servers / xserver-build-ubuntu (push) Waiting to run
Build X servers / drivers-build-ubuntu (push) Waiting to run
Build X servers / xserver-build-mingw32-ubuntu (push) Waiting to run
Build X servers / xserver-build-macos (push) Waiting to run
Build X servers / xserver-build-freebsd (push) Waiting to run
Build X servers / xserver-build-dragonflybsd (push) Waiting to run
Build X servers / xserver-build-netbsd (push) Waiting to run
Build X servers / xserver-build-cygwin (push) Waiting to run
Build X servers / Check Signed-Off-By (push) Waiting to run
Build X servers / Release pushed tag (push) Blocked by required conditions
check PRs for merge conflicts / notify (push) Waiting to run
The Render extension's Trapezoids and Triangles operations
(fbTrapezoids, fbTriangles) render directly via pixman through
fbShapes without going through ps->Composite, so RootlessComposite
never fires for these operations.  This means RootlessStartDrawing
is not called and the macOS compositor is not notified of changed
pixels.

Add RootlessTrapezoids and RootlessTriangles wrappers following the
same pattern as RootlessComposite: call RootlessStartDrawing before
the operation, then compute the bounding box via miTrapezoidBounds or
miTriangleBounds and call RootlessDamageBox after.  The default
miTriStrip and miTriFan implementations decompose their input into
triangles and dispatch through ps->Triangles, so the RootlessTriangles
wrapper covers TriStrip and TriFan as well.

Also add a RootlessCompositeRects wrapper as defense-in-depth.  The
current miCompositeRects implementation already has partial rootless
coverage: PictOpSrc/PictOpClear go through the GC layer, and other
ops route through CompositePicture -> RootlessComposite.  Wrapping at
the PictureScreen level ensures robustness regardless of the underlying
implementation.

Fixes [1/2]: https://github.com/XQuartz/XQuartz/issues/31

Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
2026-04-30 15:00:09 +02:00
Enrico Weigelt, metux IT consult
a900f1dc57 treewide: clean up includes of mipict.h
Some checks are pending
Build X servers / xserver-build-ubuntu (push) Waiting to run
Build X servers / drivers-build-ubuntu (push) Waiting to run
Build X servers / xserver-build-mingw32-ubuntu (push) Waiting to run
Build X servers / xserver-build-macos (push) Waiting to run
Build X servers / xserver-build-freebsd (push) Waiting to run
Build X servers / xserver-build-dragonflybsd (push) Waiting to run
Build X servers / xserver-build-netbsd (push) Waiting to run
Build X servers / xserver-build-cygwin (push) Waiting to run
Build X servers / Check Signed-Off-By (push) Waiting to run
Build X servers / Release pushed tag (push) Blocked by required conditions
check PRs for merge conflicts / notify (push) Waiting to run
This header is part of SDK and thus located under ./include

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-04-30 14:51:33 +02:00
Enrico Weigelt, metux IT consult
a6ba4a3800 include: xlibre_ptrtypes: protect from double declaration of ClientPtr
On MacOS we're getting tons of warnings, because Xdefs.h also defining
this type. In the longer run we should check whether to include
Xdefs.h at all, but for the time being just doing a quick workaround.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-04-30 14:39:39 +02:00
Enrico Weigelt, metux IT consult
f6d822a251 os: access: handle allocation failures
Some checks are pending
Build X servers / xserver-build-ubuntu (push) Waiting to run
Build X servers / drivers-build-ubuntu (push) Waiting to run
Build X servers / xserver-build-mingw32-ubuntu (push) Waiting to run
Build X servers / xserver-build-macos (push) Waiting to run
Build X servers / xserver-build-freebsd (push) Waiting to run
Build X servers / xserver-build-dragonflybsd (push) Waiting to run
Build X servers / xserver-build-netbsd (push) Waiting to run
Build X servers / xserver-build-cygwin (push) Waiting to run
Build X servers / Check Signed-Off-By (push) Waiting to run
Build X servers / Release pushed tag (push) Blocked by required conditions
check PRs for merge conflicts / notify (push) Waiting to run
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-04-30 13:23:09 +02:00
Enrico Weigelt, metux IT consult
497fcee94f Xext: xtest: bracket around if/for
Some checks are pending
Build X servers / xserver-build-ubuntu (push) Waiting to run
Build X servers / drivers-build-ubuntu (push) Waiting to run
Build X servers / xserver-build-mingw32-ubuntu (push) Waiting to run
Build X servers / xserver-build-macos (push) Waiting to run
Build X servers / xserver-build-freebsd (push) Waiting to run
Build X servers / xserver-build-dragonflybsd (push) Waiting to run
Build X servers / xserver-build-netbsd (push) Waiting to run
Build X servers / xserver-build-cygwin (push) Waiting to run
Build X servers / Check Signed-Off-By (push) Waiting to run
Build X servers / Release pushed tag (push) Blocked by required conditions
check PRs for merge conflicts / notify (push) Waiting to run
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-04-30 12:19:54 +02:00
Enrico Weigelt, metux IT consult
f4c0e9c288 Xext: xselinux_label: brackets around if/for
Some checks are pending
Build X servers / xserver-build-ubuntu (push) Waiting to run
Build X servers / drivers-build-ubuntu (push) Waiting to run
Build X servers / xserver-build-mingw32-ubuntu (push) Waiting to run
Build X servers / xserver-build-macos (push) Waiting to run
Build X servers / xserver-build-freebsd (push) Waiting to run
Build X servers / xserver-build-dragonflybsd (push) Waiting to run
Build X servers / xserver-build-netbsd (push) Waiting to run
Build X servers / xserver-build-cygwin (push) Waiting to run
Build X servers / Check Signed-Off-By (push) Waiting to run
Build X servers / Release pushed tag (push) Blocked by required conditions
check PRs for merge conflicts / notify (push) Waiting to run
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-04-30 11:05:23 +02:00
Enrico Weigelt, metux IT consult
7c7f83efeb Xext: xselinux_hooks: brackets on if/for
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-04-30 11:05:00 +02:00
Enrico Weigelt, metux IT consult
f43f5f0aec Xext: panoramiX: use X_REQUEST_* macros for request parsing
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-04-30 11:01:02 +02:00
Enrico Weigelt, metux IT consult
572353bc85 Xext: selinux: brackets around if/for
Some checks are pending
Build X servers / xserver-build-ubuntu (push) Waiting to run
Build X servers / drivers-build-ubuntu (push) Waiting to run
Build X servers / xserver-build-mingw32-ubuntu (push) Waiting to run
Build X servers / xserver-build-macos (push) Waiting to run
Build X servers / xserver-build-freebsd (push) Waiting to run
Build X servers / xserver-build-dragonflybsd (push) Waiting to run
Build X servers / xserver-build-netbsd (push) Waiting to run
Build X servers / xserver-build-cygwin (push) Waiting to run
Build X servers / Check Signed-Off-By (push) Waiting to run
Build X servers / Release pushed tag (push) Blocked by required conditions
check PRs for merge conflicts / notify (push) Waiting to run
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-04-29 20:12:39 +02:00
Enrico Weigelt, metux IT consult
f956288791 Xext: xf86bigfont: brackets around if/for/while
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-04-29 20:04:10 +02:00
Enrico Weigelt, metux IT consult
b2c6474bfc Xext: xres: brackets on if's
Some checks are pending
Build X servers / xserver-build-ubuntu (push) Waiting to run
Build X servers / drivers-build-ubuntu (push) Waiting to run
Build X servers / xserver-build-mingw32-ubuntu (push) Waiting to run
Build X servers / xserver-build-macos (push) Waiting to run
Build X servers / xserver-build-freebsd (push) Waiting to run
Build X servers / xserver-build-dragonflybsd (push) Waiting to run
Build X servers / xserver-build-netbsd (push) Waiting to run
Build X servers / xserver-build-cygwin (push) Waiting to run
Build X servers / Check Signed-Off-By (push) Waiting to run
Build X servers / Release pushed tag (push) Blocked by required conditions
check PRs for merge conflicts / notify (push) Waiting to run
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-04-29 19:52:42 +02:00
Enrico Weigelt, metux IT consult
d9da339954 Xext: xcmisc: brackets around if
Some checks are pending
Build X servers / xserver-build-ubuntu (push) Waiting to run
Build X servers / drivers-build-ubuntu (push) Waiting to run
Build X servers / xserver-build-mingw32-ubuntu (push) Waiting to run
Build X servers / xserver-build-macos (push) Waiting to run
Build X servers / xserver-build-freebsd (push) Waiting to run
Build X servers / xserver-build-dragonflybsd (push) Waiting to run
Build X servers / xserver-build-netbsd (push) Waiting to run
Build X servers / xserver-build-cygwin (push) Waiting to run
Build X servers / Check Signed-Off-By (push) Waiting to run
Build X servers / Release pushed tag (push) Blocked by required conditions
check PRs for merge conflicts / notify (push) Waiting to run
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-04-29 19:27:57 +02:00
Enrico Weigelt, metux IT consult
562780725c dix: and NULL protect FreeCursor()
Adding NULL protection in FreeCursor(), so we don't need extra
checks at caller sites anymore.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-04-29 19:20:33 +02:00
Enrico Weigelt, metux IT consult
f6b58206fd Xext: saver: clean up setEventMask()
Some checks are pending
Build X servers / xserver-build-ubuntu (push) Waiting to run
Build X servers / drivers-build-ubuntu (push) Waiting to run
Build X servers / xserver-build-mingw32-ubuntu (push) Waiting to run
Build X servers / xserver-build-macos (push) Waiting to run
Build X servers / xserver-build-freebsd (push) Waiting to run
Build X servers / xserver-build-dragonflybsd (push) Waiting to run
Build X servers / xserver-build-netbsd (push) Waiting to run
Build X servers / xserver-build-cygwin (push) Waiting to run
Build X servers / Check Signed-Off-By (push) Waiting to run
Build X servers / Release pushed tag (push) Blocked by required conditions
check PRs for merge conflicts / notify (push) Waiting to run
* drop unnecessary forward declaration
* declare variables where needed

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-04-29 18:31:10 +02:00
Enrico Weigelt, metux IT consult
834c9027ba Xext: sleepuntil: rename list walk variables
For carirty, rename the list walk variables `pReq` to `walk`.
Also reducing diff size on follow-up commits.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-04-29 18:27:55 +02:00
Enrico Weigelt, metux IT consult
446999718f Xext: saver: ScreenSaverSetAttributes: drop extra bw variable
Some checks are pending
Build X servers / xserver-build-ubuntu (push) Waiting to run
Build X servers / drivers-build-ubuntu (push) Waiting to run
Build X servers / xserver-build-mingw32-ubuntu (push) Waiting to run
Build X servers / xserver-build-macos (push) Waiting to run
Build X servers / xserver-build-freebsd (push) Waiting to run
Build X servers / xserver-build-dragonflybsd (push) Waiting to run
Build X servers / xserver-build-netbsd (push) Waiting to run
Build X servers / xserver-build-cygwin (push) Waiting to run
Build X servers / Check Signed-Off-By (push) Waiting to run
Build X servers / Release pushed tag (push) Blocked by required conditions
check PRs for merge conflicts / notify (push) Waiting to run
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-04-29 18:07:17 +02:00
Enrico Weigelt, metux IT consult
a3914e4f8b Xext: sleepuntil: rename pPending to pending
Some checks are pending
Build X servers / xserver-build-ubuntu (push) Waiting to run
Build X servers / drivers-build-ubuntu (push) Waiting to run
Build X servers / xserver-build-mingw32-ubuntu (push) Waiting to run
Build X servers / xserver-build-macos (push) Waiting to run
Build X servers / xserver-build-freebsd (push) Waiting to run
Build X servers / xserver-build-dragonflybsd (push) Waiting to run
Build X servers / xserver-build-netbsd (push) Waiting to run
Build X servers / xserver-build-cygwin (push) Waiting to run
Build X servers / Check Signed-Off-By (push) Waiting to run
Build X servers / Release pushed tag (push) Blocked by required conditions
check PRs for merge conflicts / notify (push) Waiting to run
Little stupid naming change, just to keep difference on upcoming
refactoring smaller (make those commits easier to read)

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-04-29 17:19:53 +02:00
Enrico Weigelt, metux IT consult
77ce387697 Xext: shm: declare variables where needed in ProcShmPutImage()
Some checks are pending
Build X servers / xserver-build-ubuntu (push) Waiting to run
Build X servers / drivers-build-ubuntu (push) Waiting to run
Build X servers / xserver-build-mingw32-ubuntu (push) Waiting to run
Build X servers / xserver-build-macos (push) Waiting to run
Build X servers / xserver-build-freebsd (push) Waiting to run
Build X servers / xserver-build-dragonflybsd (push) Waiting to run
Build X servers / xserver-build-netbsd (push) Waiting to run
Build X servers / xserver-build-cygwin (push) Waiting to run
Build X servers / Check Signed-Off-By (push) Waiting to run
Build X servers / Release pushed tag (push) Blocked by required conditions
check PRs for merge conflicts / notify (push) Waiting to run
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-04-29 17:14:00 +02:00
Enrico Weigelt, metux IT consult
428945e34b Xext: saver.c: declare variables where needed in ScreenSaverUnsetAttributes()
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-04-29 16:56:26 +02:00
Enrico Weigelt, metux IT consult
5ebc29337c Xext: bigreq: drop unnecessary includes
Some checks are pending
Build X servers / xserver-build-ubuntu (push) Waiting to run
Build X servers / drivers-build-ubuntu (push) Waiting to run
Build X servers / xserver-build-mingw32-ubuntu (push) Waiting to run
Build X servers / xserver-build-macos (push) Waiting to run
Build X servers / xserver-build-freebsd (push) Waiting to run
Build X servers / xserver-build-dragonflybsd (push) Waiting to run
Build X servers / xserver-build-netbsd (push) Waiting to run
Build X servers / xserver-build-cygwin (push) Waiting to run
Build X servers / Check Signed-Off-By (push) Waiting to run
Build X servers / Release pushed tag (push) Blocked by required conditions
check PRs for merge conflicts / notify (push) Waiting to run
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-04-29 15:06:50 +02:00
Enrico Weigelt, metux IT consult
0245436271 Xext: saver: declare variables where needed in getEventMask()
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-04-29 14:57:28 +02:00
Enrico Weigelt, metux IT consult
db3f59d215 Xext: saver: scope variables in ScreenSaverSetAttributes()
Some checks are pending
Build X servers / xserver-build-ubuntu (push) Waiting to run
Build X servers / drivers-build-ubuntu (push) Waiting to run
Build X servers / xserver-build-mingw32-ubuntu (push) Waiting to run
Build X servers / xserver-build-macos (push) Waiting to run
Build X servers / xserver-build-freebsd (push) Waiting to run
Build X servers / xserver-build-dragonflybsd (push) Waiting to run
Build X servers / xserver-build-netbsd (push) Waiting to run
Build X servers / xserver-build-cygwin (push) Waiting to run
Build X servers / Check Signed-Off-By (push) Waiting to run
Build X servers / Release pushed tag (push) Blocked by required conditions
check PRs for merge conflicts / notify (push) Waiting to run
Properly scoping variables to where they're actually used reduces the
risk of abusing them for multiple different things and thus the risk
of introducing bugs on refactoring.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-04-29 14:28:58 +02:00
Enrico Weigelt, metux IT consult
e578757510 Xext: saver: cleanup UninstallSaverColormap()
* drop the extra prototype
* scope the pCmap variable

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-04-29 14:27:54 +02:00
Enrico Weigelt, metux IT consult
89c838d8fe Xext: saver: declare variables where needed in ProcScreenSaverQueryInfo()
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-04-29 14:27:25 +02:00
Enrico Weigelt, metux IT consult
1813f35a2a Xext: saver: extra NULL pointer protection in UninstallSaverColormap()
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-04-29 14:26:47 +02:00
Enrico Weigelt, metux IT consult
acedb6c34c Xext: saver: init reply struct at once in ProcScreenSaverQueryInfo()
Some checks are pending
Build X servers / xserver-build-ubuntu (push) Waiting to run
Build X servers / drivers-build-ubuntu (push) Waiting to run
Build X servers / xserver-build-mingw32-ubuntu (push) Waiting to run
Build X servers / xserver-build-macos (push) Waiting to run
Build X servers / xserver-build-freebsd (push) Waiting to run
Build X servers / xserver-build-dragonflybsd (push) Waiting to run
Build X servers / xserver-build-netbsd (push) Waiting to run
Build X servers / xserver-build-cygwin (push) Waiting to run
Build X servers / Check Signed-Off-By (push) Waiting to run
Build X servers / Release pushed tag (push) Blocked by required conditions
check PRs for merge conflicts / notify (push) Waiting to run
Initialize all the reply struct field in one shot.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-04-29 12:40:47 +02:00
Enrico Weigelt, metux IT consult
31e70d4217 Xext: damage: turn around return values on doDamageCreate()
Some checks are pending
Build X servers / xserver-build-ubuntu (push) Waiting to run
Build X servers / drivers-build-ubuntu (push) Waiting to run
Build X servers / xserver-build-mingw32-ubuntu (push) Waiting to run
Build X servers / xserver-build-macos (push) Waiting to run
Build X servers / xserver-build-freebsd (push) Waiting to run
Build X servers / xserver-build-dragonflybsd (push) Waiting to run
Build X servers / xserver-build-netbsd (push) Waiting to run
Build X servers / xserver-build-cygwin (push) Waiting to run
Build X servers / Check Signed-Off-By (push) Waiting to run
Build X servers / Release pushed tag (push) Blocked by required conditions
check PRs for merge conflicts / notify (push) Waiting to run
Let's be more consistent with the rest of the code base and return
the result code as function return value and the additional data
via pointer.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-04-29 11:29:42 +02:00
Enrico Weigelt, metux IT consult
e43351f1cd Xext: declare rc variables where needed
Some checks are pending
Build X servers / xserver-build-ubuntu (push) Waiting to run
Build X servers / drivers-build-ubuntu (push) Waiting to run
Build X servers / xserver-build-mingw32-ubuntu (push) Waiting to run
Build X servers / xserver-build-macos (push) Waiting to run
Build X servers / xserver-build-freebsd (push) Waiting to run
Build X servers / xserver-build-dragonflybsd (push) Waiting to run
Build X servers / xserver-build-netbsd (push) Waiting to run
Build X servers / xserver-build-cygwin (push) Waiting to run
Build X servers / Check Signed-Off-By (push) Waiting to run
Build X servers / Release pushed tag (push) Blocked by required conditions
check PRs for merge conflicts / notify (push) Waiting to run
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-04-29 10:03:52 +02:00
stefan11111
387feb212c glamor/glamor_egl: Don't blindly set the gl vendor to mesa
When using libgbm without nvidia's backend, we were
assuming we were using mesa's backend.

With this, we actually check to see if we are using
mesa's backend.

If not, we use the same fallback logic as if we didn't have
a gbm backend at all.

Signed-off-by: stefan11111 <stefan11111github@gmail.com>
2026-04-29 10:02:36 +02:00
Enrico Weigelt, metux IT consult
354674dd5b Xext: sync: ProcSyncGetPriority(): declare rc variable where needed
Some checks are pending
Build X servers / xserver-build-ubuntu (push) Waiting to run
Build X servers / drivers-build-ubuntu (push) Waiting to run
Build X servers / xserver-build-mingw32-ubuntu (push) Waiting to run
Build X servers / xserver-build-macos (push) Waiting to run
Build X servers / xserver-build-freebsd (push) Waiting to run
Build X servers / xserver-build-dragonflybsd (push) Waiting to run
Build X servers / xserver-build-netbsd (push) Waiting to run
Build X servers / xserver-build-cygwin (push) Waiting to run
Build X servers / Check Signed-Off-By (push) Waiting to run
Build X servers / Release pushed tag (push) Blocked by required conditions
check PRs for merge conflicts / notify (push) Waiting to run
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-04-28 20:39:28 +02:00
Enrico Weigelt, metux IT consult
65932a1d79 Xext: shm: ProcShmCreateSegment(): delcare reply struct right where needed
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-04-28 20:37:58 +02:00
Enrico Weigelt, metux IT consult
3bdacc6e0f xkb: drop unnecessary assignment of core reply struct fields
Those fields are already assigned by X_REPLY_SEND*() macros,
thus we don't need to - and should not - assign them explicitly.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-04-28 20:31:06 +02:00
Enrico Weigelt, metux IT consult
c4cae6759c Xext: shm: use new X_REPLY_FIELD_* macros
Some checks are pending
Build X servers / xserver-build-ubuntu (push) Waiting to run
Build X servers / drivers-build-ubuntu (push) Waiting to run
Build X servers / xserver-build-mingw32-ubuntu (push) Waiting to run
Build X servers / xserver-build-macos (push) Waiting to run
Build X servers / xserver-build-freebsd (push) Waiting to run
Build X servers / xserver-build-dragonflybsd (push) Waiting to run
Build X servers / xserver-build-netbsd (push) Waiting to run
Build X servers / xserver-build-cygwin (push) Waiting to run
Build X servers / Check Signed-Off-By (push) Waiting to run
Build X servers / Release pushed tag (push) Blocked by required conditions
check PRs for merge conflicts / notify (push) Waiting to run
Use the new X_REPLY_FIELD_* macros for reply byte-swapping.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-04-28 20:08:30 +02:00
Enrico Weigelt, metux IT consult
189320f828 Xext: shm: rename xgi reply struct to reply in ProcShmGetImage()
Some checks are pending
Build X servers / xserver-build-ubuntu (push) Waiting to run
Build X servers / drivers-build-ubuntu (push) Waiting to run
Build X servers / xserver-build-mingw32-ubuntu (push) Waiting to run
Build X servers / xserver-build-macos (push) Waiting to run
Build X servers / xserver-build-freebsd (push) Waiting to run
Build X servers / xserver-build-dragonflybsd (push) Waiting to run
Build X servers / xserver-build-netbsd (push) Waiting to run
Build X servers / xserver-build-cygwin (push) Waiting to run
Build X servers / Check Signed-Off-By (push) Waiting to run
Build X servers / Release pushed tag (push) Blocked by required conditions
check PRs for merge conflicts / notify (push) Waiting to run
All reply structs shall be consistently named `reply`.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-04-28 19:50:10 +02:00
Enrico Weigelt, metux IT consult
90ae835a7a xkb: use new X_REPLY_FIELD_* macros
Use the new X_REPLY_FIELD_* macros for reply byte-swapping.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-04-28 19:49:10 +02:00
Enrico Weigelt, metux IT consult
a2f2743f87 Xext: shm: don't abuse length variable in ProcShmGetImage()
Some checks are pending
Build X servers / xserver-build-ubuntu (push) Waiting to run
Build X servers / drivers-build-ubuntu (push) Waiting to run
Build X servers / xserver-build-mingw32-ubuntu (push) Waiting to run
Build X servers / xserver-build-macos (push) Waiting to run
Build X servers / xserver-build-freebsd (push) Waiting to run
Build X servers / xserver-build-dragonflybsd (push) Waiting to run
Build X servers / xserver-build-netbsd (push) Waiting to run
Build X servers / xserver-build-cygwin (push) Waiting to run
Build X servers / Check Signed-Off-By (push) Waiting to run
Build X servers / Release pushed tag (push) Blocked by required conditions
check PRs for merge conflicts / notify (push) Waiting to run
It's originally used for the reply's `size` field, but later abused
for entirely different purpose. Such things can cause subtle bugs
on later changes, so let's keep them cleanly separated.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-04-28 19:27:16 +02:00
Enrico Weigelt, metux IT consult
f2a28272b2 Xext: shm: fix ShmGetImage()
Some checks are pending
Build X servers / xserver-build-ubuntu (push) Waiting to run
Build X servers / drivers-build-ubuntu (push) Waiting to run
Build X servers / xserver-build-mingw32-ubuntu (push) Waiting to run
Build X servers / xserver-build-macos (push) Waiting to run
Build X servers / xserver-build-freebsd (push) Waiting to run
Build X servers / xserver-build-dragonflybsd (push) Waiting to run
Build X servers / xserver-build-netbsd (push) Waiting to run
Build X servers / xserver-build-cygwin (push) Waiting to run
Build X servers / Check Signed-Off-By (push) Waiting to run
Build X servers / Release pushed tag (push) Blocked by required conditions
check PRs for merge conflicts / notify (push) Waiting to run
Last commit moved down the reply record assignent, but overlooked that
the `length` variable has been abused for other purpose.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-04-28 18:56:19 +02:00
Enrico Weigelt, metux IT consult
e3ba00b535 Xext: saver: brackets around if's and loops.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-04-28 18:53:00 +02:00
Enrico Weigelt, metux IT consult
297cf2829f xfixes: use new X_REPLY_FIELD_* macros
Use the new X_REPLY_FIELD_* macros for reply byte-swapping.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-04-28 18:50:56 +02:00