Commit graph xserver/Xext/panoramiX/panoramiX.c
Author SHA1 Message Date
Enrico Weigelt, metux IT consult
42d18f08ab Xext: panoramiX: declare where needed in PanoramiXCreateConnectionBlock()
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-10-01 11:26:55 +02:00
Enrico Weigelt, metux IT consult
21f82727a4 Xext: panoramiX: let PanoramiXCreateConnectionBlock() return rpcbuf
Let PanoramiXCreateConnectionBlock() only return x_rpcbuf_t, not touching
global structures anymore - it's caller will that now.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-09-29 16:11:03 +02:00
Enrico Weigelt, metux IT consult
1792233bd8 xext: panoramix: simplify PanoramiXConsolidate() calls
1. move the panoramix enabled check into PanoramiXConsolidate()
2. declare a static inline dummy if XINERAMA is not defined,
   so callers don't need extra ifdefs anymore.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-09-28 19:50:33 +02:00
Enrico Weigelt, metux IT consult
4c37cf1437 dix: connsetup: remove screenDataOffset param
now that we have dixConnBlockScreenStart(), we don't need the
reference parameter of dixConnBlockScreenStart() anymore.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-09-28 19:19:32 +02:00
Enrico Weigelt, metux IT consult
ab7b2b44f3 dix: connsetup: add helper dixConnBlockScreenStart()
adding a helper for calculating the offset of the first xWindowRoot
structure within the connection info block. this way getting rid
of the global connBlockScreenStart field.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-09-28 16:13:08 +02:00
Enrico Weigelt, metux IT consult
322305bfe6 Xext: panoramix: inline CreateConnectionBlock()
inline CreateConnectionBlock() into PanoramiXCreateConnectionBlock(),
in order to make future refactoring a bit easier. Further steps will
refactor the function to just return the buffer instead of setting
global variables.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-09-25 22:42:03 +02:00
Enrico Weigelt, metux IT consult
eb4a798af3 dix: refactor sending out the connection setup prefix
Drop the global connSetupPrefix variable and instead create that
tiny struct on the fly (we need to copy it for byteswapping anyways)

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-09-24 19:59:25 +02:00
Enrico Weigelt, metux IT consult
47aae35892 xinerama: refactor post-init callback
a) replace custom callback machinery by standard CallbackListPtr

Dropping lots of unnecessarily duplicated code.

b) call the callbacks from PanoramiXConsolidate() instead of
   PanoramiXCreateConnectionBlock()

Still called after Xinerama has been finished it's own setup (so Xv can do
it's xinerama-specific setups) and before the first client can connect.
But now we can re-call PanoramiXCreateConnectionBlock() any time.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-09-24 19:35:20 +02:00
Enrico Weigelt, metux IT consult
c0255c5967 dix: store the ConnectionInfo block size in separate variable
Store it it's own variable as authorative source, so we don't
need to keep it in connSetupPrefix anymore - and get rid of that
in future steps.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-09-24 16:54:32 +02:00
Enrico Weigelt, metux IT consult
f194ccd8c1 dix: pass number of screens to CreateConnectionBlock
Panoramix needs a special handling so that we're only sending one
screen (and numRoots becomes = 1). Instead of tweaking global
variables back and forth, just pass in the desired value.

When 0 is passed, using screenInfo.numScreens instead.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-09-24 12:49:05 +02:00
Enrico Weigelt, metux IT consult
361bc1c9f2 xext: panoramix: use stdbool's 'bool' instead of 'Bool' for local variables
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-08-07 14:24:36 +02:00
Enrico Weigelt, metux IT consult
dd2ad2cd93 xext: panoramiX: helpers for checking wether it's enabled/disabled
Some checks failed
Build X servers / drivers-build-ubuntu (video-siliconmotion:25.0.0) (push) Has been cancelled
Build X servers / drivers-build-ubuntu (video-sis:25.0.0) (push) Has been cancelled
Build X servers / drivers-build-ubuntu (video-sisusb:25.0.0) (push) Has been cancelled
Build X servers / drivers-build-ubuntu (video-suncg14:25.0.0) (push) Has been cancelled
Build X servers / drivers-build-ubuntu (video-suncg3:25.0.0) (push) Has been cancelled
Build X servers / drivers-build-ubuntu (video-suncg6:25.0.0) (push) Has been cancelled
Build X servers / drivers-build-ubuntu (video-sunffb:25.0.0) (push) Has been cancelled
Build X servers / drivers-build-ubuntu (video-sunleo:25.0.0) (push) Has been cancelled
Build X servers / drivers-build-ubuntu (video-suntcx:25.0.0) (push) Has been cancelled
Build X servers / drivers-build-ubuntu (video-tdfx:25.0.0) (push) Has been cancelled
Build X servers / drivers-build-ubuntu (video-trident:25.0.0) (push) Has been cancelled
Build X servers / drivers-build-ubuntu (video-v4l:25.0.1) (push) Has been cancelled
Build X servers / drivers-build-ubuntu (video-vbox:25.0.0) (push) Has been cancelled
Build X servers / drivers-build-ubuntu (video-vesa:25.0.0) (push) Has been cancelled
Build X servers / drivers-build-ubuntu (video-vmware:25.0.0) (push) Has been cancelled
Build X servers / drivers-build-ubuntu (video-voodoo:25.0.0) (push) Has been cancelled
Build X servers / drivers-build-ubuntu (video-xgi:25.0.0) (push) Has been cancelled
Build X servers / xserver-build-mingw32-ubuntu (push) Has been cancelled
Build X servers / xserver-build-freebsd (push) Has been cancelled
Build X servers / xserver-build-dragonflybsd (push) Has been cancelled
Build X servers / xserver-build-netbsd (push) Has been cancelled
Build X servers / xserver-build-solaris (push) Has been cancelled
Build X servers / xserver-build-openbsd (push) Has been cancelled
Build X servers / xserver-build-hurd (push) Has been cancelled
Build X servers / xserver-build-alpine (push) Has been cancelled
Build X servers / gentoo-deps-image (push) Has been cancelled
Build X servers / xserver-build-gentoo (push) Has been cancelled
Build X servers / xserver-build-rhel (10) (push) Has been cancelled
Build X servers / xserver-build-rhel (9) (push) Has been cancelled
Build X servers / Release pushed tag (push) Has been cancelled
These helpers are always defined, even when compiling w/o PanoramiX
at all (symbol XINERAMA not defined), so we need fewer ifdef's.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-07-24 17:27:51 +02:00
Enrico Weigelt, metux IT consult
e1e63e6c9f xext: composite: move some function declarations
move it them the compositeext_priv.h header, which is supposed to be
the one included by other parts of the Xserver.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-07-23 18:48:47 +02:00
Enrico Weigelt, metux IT consult
931be13ea8 Xext: move some calls with return on error into macros
A frequent pattern inside request handlers looks like this:

   int rc = doSomething(...);
   if (rc != Success) {
       return rc;
   }

Making the code bit shorter & quicker to read my moving this
into a macro like this:

   X_CALL_CHECK_ERR(doSomething(...));

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-06-24 19:23:43 +02:00
Enrico Weigelt, metux IT consult
876c782094 treewide: clean up includes of misc.h
adding include/ prefix to it.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-06-19 19:24:57 +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
b64e58ff07 xfixes: move it under the Xext/ directory
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-06-17 15:33:32 +02:00
Enrico Weigelt, metux IT consult
561168cfa1 render: move it under Xext/
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-06-17 14:29:57 +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
Enrico Weigelt, metux IT consult
f3da2b1012 Xext: move panoramiX into it's own subdir
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-06-16 10:13:25 +02:00
Renamed from Xext/panoramiX.c (Browse further)