Enrico Weigelt, metux IT consult
48f8aad89b
xkb: use dixAddAtom()
...
Use the new helper for creating atoms on demand.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net >
2025-07-23 12:24:27 +02:00
Enrico Weigelt, metux IT consult
39ef9586be
randr: use dixAddAtom()
...
Use the new helper for creating atoms on demand.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net >
2025-07-23 12:24:27 +02:00
Enrico Weigelt, metux IT consult
16246adc8e
Xi: use dixAddAtom()
...
Use the new helper for creating atoms on demand.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net >
2025-07-23 12:24:27 +02:00
Enrico Weigelt, metux IT consult
ef420e43be
Xext: use dixAddAtom()
...
Use the new helper for creating atoms on demand.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net >
2025-07-23 12:24:27 +02:00
Enrico Weigelt, metux IT consult
8454c94773
xwin: use dixAddAtom()
...
Use the new helper for creating atoms on demand.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net >
2025-07-23 12:24:27 +02:00
Enrico Weigelt, metux IT consult
b001470c81
xquartz: use dixAddAtom()
...
Use the new helper for creating atoms on demand.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net >
2025-07-23 12:24:27 +02:00
Enrico Weigelt, metux IT consult
9217a30960
xnest: use dixAddAtom()
...
Use the new helper for creating atoms on demand.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net >
2025-07-23 12:24:27 +02:00
Enrico Weigelt, metux IT consult
77a91598fe
vfb: use dixAddAtom()
...
Use the new helper for creating atoms on demand.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net >
2025-07-23 12:24:27 +02:00
Enrico Weigelt, metux IT consult
ec277d2c0b
xfree86: use dixAddAtom()
...
Use the new helper for creating atoms.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net >
2025-07-23 12:24:27 +02:00
Enrico Weigelt, metux IT consult
fd6467fa78
miext: use dixAddAtom()
...
Use the new dixAddAtom() helper for creating atoms.
2025-07-23 12:24:27 +02:00
Enrico Weigelt, metux IT consult
dbe1871772
glamor: use dixAddAtom()
...
Use the new dixAddAtom() helper for creating atoms.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net >
2025-07-23 12:24:27 +02:00
Enrico Weigelt, metux IT consult
63cdf161d3
dix: add dixAddAtom()
...
Convenient helper function for creating atom and get it's ID.
If atom already exist, the existing ID is retrieved.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net >
2025-07-23 12:24:27 +02:00
Enrico Weigelt, metux IT consult
c32b5b4d5b
xfixes: use dixGetAtomID()
...
Use the new shortcut helper for cases where we need to check
whether an atom exists and retrieve it's ID.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net >
2025-07-23 12:24:27 +02:00
Enrico Weigelt, metux IT consult
30cec786e5
randr: use dixGetAtomID()
...
Use the new shortcut helper for cases where we need to check
whether an atom exists and retrieve it's ID.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net >
2025-07-23 12:24:27 +02:00
Enrico Weigelt, metux IT consult
9a60579994
dix: add dixGetAtomID()
...
Helper function for retrieving _existing_ atom ID for given name.
If atom doesn't exist yet, it won't be created, but returning None instead.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net >
2025-07-23 12:24:27 +02:00
Enrico Weigelt, metux IT consult
02a88519a2
xfree86: xf86UpdateHasVTProperty(): always create atom
...
No need to have extra check for whether the Atom already exists,
just create it on demand.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net >
2025-07-23 12:24:27 +02:00
Enrico Weigelt, metux IT consult
42daf8e53e
Xi: drop using HAVE_DIX_CONFIG_H
...
This symbol is always defined, and the header is always present,
so no need to check for it.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net >
2025-07-23 12:23:06 +02:00
Enrico Weigelt, metux IT consult
ed4cf4e813
dbe: drop using HAVE_DIX_CONFIG_H
...
This symbol is always defined, and the header is always present,
so no need to check for it.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net >
2025-07-23 11:21:37 +02:00
Enrico Weigelt, metux IT consult
4d722e5cc0
damage: drop using HAVE_DIX_CONFIG_H
...
This symbol is always defined, and the header is always present,
so no need to check for it.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net >
2025-07-23 11:21:24 +02:00
Enrico Weigelt, metux IT consult
171862626e
xfree86: i2c: constify I2CBusRec::name
...
The bus name is always assigned to string literals, thus pointing to
constant data.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net >
2025-07-23 11:17:09 +02:00
Enrico Weigelt, metux IT consult
e0440a0b42
xfree86: simplify match group destruction
...
Reducing repeated code patterns by simple function call.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net >
2025-07-22 16:43:12 +02:00
Mike Gelfand
d46e9acd6f
.github: bump xts to current master
...
After the recent fixes, no patching it required to build on Mac.
Signed-off-by: Mike Gelfand <mikedld@mikedld.com >
2025-07-22 11:07:43 +02:00
Enrico Weigelt, metux IT consult
85a66a723f
xfree86: fbdevhw: fix bdevHWInit() parameter
...
device name should be const char *.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net >
2025-07-21 22:24:18 +02:00
Enrico Weigelt, metux IT consult
d9e43d0a98
xfree86: fbdevhw: fix fbdevHWProbe() parameter
...
the device name parameter should be const char *.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net >
2025-07-21 22:24:18 +02:00
Enrico Weigelt, metux IT consult
be380d1778
xfree86: fix xf86I2CBusInit() prototype
...
name parameter should be const char *
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net >
2025-07-21 19:07:08 +02:00
Enrico Weigelt, metux IT consult
f0cc20eb68
os: osdep: add macro for compile-time type size assert
...
usage:
__size_assert(typename, size);
if the type's size (calculated by sizeof) doesn't match the asserted size,
an illegal dummy type will be constructed, thus compilation fails.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net >
2025-07-19 02:38:26 +02:00
Enrico Weigelt, metux IT consult
b1edd361a0
dix: rpcbuf: add getter for 4-byte units needed to store buffer contents
...
add x_rpcbuf_wsize_units() to retrieve the amount of data written into
the buffer - in 4-byte units.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net >
2025-07-19 00:20:56 +02:00
Enrico Weigelt, metux IT consult
84b8ac1b33
dix: add WriteRpcbufToClient()
...
Adding convenience function for writing out rpc buffer contents to
client and clear the buffer (free it's memory) afterwards.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net >
2025-07-18 23:09:04 +02:00
Enrico Weigelt, metux IT consult
f5062223ec
os: xtrans: fix calloc overflow warning
...
The size of `int` is machine specific and may be 64 bits wide, which could
overflow the calloc'able size. Practically cannot happen here, since the
ListenTransCount can't go above MAX_CONNECTIONS, but compiler can't know
that and so spitting out a warning.
Using uint32_t really is sufficient here.
> ../os/connection.c: In function ‘CreateWellKnownSockets’:
> ../os/connection.c:274:22: warning: argument 1 range [18446744071562067968, 18446744073709551615] exceeds maximum object size 9223372036854775807 [-Walloc-size-larger-than=]
> 274 | ListenTransFds = calloc(ListenTransCount, sizeof(int));
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net >
2025-07-18 22:29:38 +02:00
Enrico Weigelt, metux IT consult
d1bb5dc457
os: xtrans: expand TRANS() macro to _XSERVTrans
...
Since TRANS() now will always expand the same, it's better for
maintenance, having the function names written explicitly.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net >
2025-07-18 22:29:38 +02:00
Enrico Weigelt, metux IT consult
689351067c
os: xtrans: drop GetReopenInfo()
...
Not used anywhere, so no need to keep it around anymore.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net >
2025-07-18 22:29:38 +02:00
Enrico Weigelt, metux IT consult
80d1cb5095
os: xtrans: drop ifdefs on NAMEDNODENAME
...
It's always defined, so no ifdefs needed.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net >
2025-07-18 22:29:38 +02:00
Enrico Weigelt, metux IT consult
f7a1627659
os: xtrans: drop DEV_PTMX
...
Not used anywhere.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net >
2025-07-18 22:29:38 +02:00
Enrico Weigelt, metux IT consult
03653eb403
os: xtrans: drop TRANS_CLIENT code pathes
...
Not needed in server-only code base.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net >
2025-07-18 22:29:38 +02:00
Enrico Weigelt, metux IT consult
a830e4eff5
os: xtrans: drop XSERV_t and x11_t defines
...
These are always enablde (x11_t is defined when XSERV_t is defined),
so no need for the #ifdef's anymore.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net >
2025-07-18 22:29:38 +02:00
Enrico Weigelt, metux IT consult
499751751d
os: xtrans: drop ifdef TRANS_REOPEN
...
It's always defined, so the guards aren't necessary.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net >
2025-07-18 22:29:38 +02:00
Enrico Weigelt, metux IT consult
b17fe4128b
os: xtrans: drop ifdef TRANS_SERVER
...
it's always defined, no extra guards needed.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net >
2025-07-18 22:29:38 +02:00
Enrico Weigelt, metux IT consult
1f49e6ae8f
os: xtrans: drop NEED_UTSNAME
...
All our supported platforms have this utsname.h.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net >
2025-07-18 22:29:38 +02:00
Enrico Weigelt, metux IT consult
fb5f76f856
os: xtrans: drop _WILLWINSOCK_
...
Not used anywhere.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net >
2025-07-18 22:29:38 +02:00
Enrico Weigelt, metux IT consult
214e1c0ca1
os: xtrans: drop own VErrorF() and ErrorF()
...
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net >
2025-07-18 22:29:38 +02:00
Enrico Weigelt, metux IT consult
16053efd50
os: xtrans: replace bzero by memset
...
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net >
2025-07-18 22:29:38 +02:00
Enrico Weigelt, metux IT consult
4ca4c167ff
os: xtrans: drop XIM_t
...
Not defined anywhere.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net >
2025-07-18 22:29:38 +02:00
Enrico Weigelt, metux IT consult
882d4d440a
os: xtrans: drop FS_t
...
Not defined anywhere, so no need to keep it around anymore.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net >
2025-07-18 22:29:38 +02:00
Enrico Weigelt, metux IT consult
18a459340c
os: xtrans: drop FONT_t
...
Not used anywhere, so no need to keep it around anymore.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net >
2025-07-18 22:29:38 +02:00
Enrico Weigelt, metux IT consult
8df9d118a0
os: xtrans: drop ICE_t
...
Not used anywhere.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net >
2025-07-18 22:29:38 +02:00
Enrico Weigelt, metux IT consult
a9973073c0
os: xtrans: drop GetMyNetworkId()
...
Not used anywhere, so lets drop it.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net >
2025-07-18 22:29:38 +02:00
Enrico Weigelt, metux IT consult
9156f28be1
os: xtrans: drop unused GetPeerNetworkId()
...
Not used anywhere, so let's drop it.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net >
2025-07-18 22:29:38 +02:00
Enrico Weigelt, metux IT consult
930f2d6f15
os: xtrans: drop X_NO_SYS_UN
...
Not defined anywhere, so no need to check for it.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net >
2025-07-18 22:29:38 +02:00
Enrico Weigelt, metux IT consult
d5d19ac6f0
os: use internal xtrans instead of external library
...
Now that we've got xtrans bundled in our source tree, use this one and
drop the external dependency.
Closes: https://gitlab.freedesktop.org/xorg/xserver/-/issues/691
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net >
2025-07-18 22:29:38 +02:00
Enrico Weigelt, metux IT consult
cd81370e9d
os: incorporate xtrans xtrans-1.6.0
...
Copy over from xtrans package, tag xtrans-1.6.0
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net >
2025-07-18 22:29:38 +02:00