Enrico Weigelt, metux IT consult
39dfed90fd
xkb: fix swapping bug in ProcXkbGetKbdByName()
...
Build X servers / xserver-build-ubuntu (push) Has been cancelled
Build X servers / drivers-build-ubuntu (push) Has been cancelled
Build X servers / xserver-build-macos (push) Has been cancelled
Build X servers / Release pushed tag (push) Has been cancelled
We've been adding the individual sub-packet's payload bytes *after*
the swapping, which is leading to totally wrong sizes.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-08-18 17:26:00 +02:00
Enrico Weigelt, metux IT consult
e40749beb3
dix: fix memory clearing in dix_main()
...
Build X servers / xserver-build-ubuntu (push) Has been cancelled
Build X servers / drivers-build-ubuntu (push) Has been cancelled
Build X servers / xserver-build-macos (push) Has been cancelled
Build X servers / Release pushed tag (push) Has been cancelled
Clearing of screens and gpuscreens pointer list on teardown has been wrong.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-08-15 14:26:09 +02:00
Enrico Weigelt, metux IT consult
5c659b4b06
randr: fix size parameter to WriteToClient()
...
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-macos (push) Waiting to run
Build X servers / Release pushed tag (push) Waiting to run
Size computation needs to be done on the struct actually written.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-08-14 16:48:07 +02:00
Enrico Weigelt, metux IT consult
d3573913c3
Xi: fix size parameter to WriteToClient()
...
Size computation needs to be done on the struct actually written.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-08-14 16:47:54 +02:00
Enrico Weigelt, metux IT consult
7236546874
namespace: fix naming in examples, errors and comments
...
Build X servers / xserver-build-ubuntu (push) Has been cancelled
Build X servers / drivers-build-ubuntu (push) Has been cancelled
Build X servers / xserver-build-macos (push) Has been cancelled
Build X servers / Release pushed tag (push) Has been cancelled
At some places, there's still the word 'contianer' instead of 'namespace'
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-08-13 11:49:21 +02:00
Enrico Weigelt, metux IT consult
fcae57263d
namespace: allow "namespace" config directive instead of "container"
...
The namespace config still has the "container" directive, which should have
been named "namespace". It's a leftover from the original working draft that
was named "container extension".
For the time being, keep backwards compatibility by allowing both tokens
"container" as well as "namespace" for the same directive. But consider the
old token as deprecated, it shouldn't be used anymore and might go away
in the near future.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-08-13 11:48:52 +02:00
Enrico Weigelt, metux IT consult
ef31842e84
Xext: shape: fix non-ximerama build
...
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-macos (push) Waiting to run
Build X servers / Release pushed tag (push) Waiting to run
In the non-XINERAMA code path, a parameter was missing.
Fixes: a57db845bb
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-08-12 11:07:24 +02:00
Enrico Weigelt, metux IT consult
c998f14c76
dbe: fix screen cleanup
...
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-macos (push) Waiting to run
Build X servers / Release pushed tag (push) Waiting to run
The 2nd loop is supposed to free the privates and also clear the pointer
to them. But it instead of clearing the walk'ed pointer, it only clears
the one in the last screen left from the upper loop.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-08-11 15:22:30 +02:00
Enrico Weigelt, metux IT consult
e4836d4e0f
bugfix release xlibre-xserver-25.0.0.8
...
Build X servers / xserver-build-ubuntu (push) Has been cancelled
Build X servers / drivers-build-ubuntu (push) Has been cancelled
Build X servers / xserver-build-macos (push) Has been cancelled
Build X servers / Release pushed tag (push) Has been cancelled
xlibre-xserver-25.0.0.8
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-08-05 19:04:34 +02:00
Enrico Weigelt, metux IT consult
ebb3660f64
Xext: xv: fix redefinition of typedef 'XvPortNotifyPtr'
...
In file included from ../Xext/xvmc.c:14:
../Xext/xvdix_priv.h:31:21: warning: redefinition of typedef 'XvPortNotifyPtr' is a C11 feature [-Wtypedef-redefinition]
31 | } XvPortNotifyRec, *XvPortNotifyPtr;
| ^
../Xext/xvdix.h:73:34: note: previous definition is here
73 | typedef struct _XvPortNotifyRec *XvPortNotifyPtr;
| ^
1 warning generated.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-08-05 18:59:43 +02:00
Enrico Weigelt, metux IT consult
8e72499df7
os: ospoll: include winsock2.h on WIN32 instead of misc.h
...
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-macos (push) Waiting to run
Build X servers / Release pushed tag (push) Waiting to run
On WIN32 we need to include winsock2.h, but we can't include misc.h here
becaues it pulling in X11 headers that are conflicting with win32 headers.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-08-05 16:54:00 +02:00
Enrico Weigelt, metux IT consult
23aa722c15
os: move X_NOTIFY_* defines to separate header
...
These defines are already public, used by consumers of SetNotifyFd(),
but also needed in places where os.h cannot be included.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-08-05 16:53:28 +02:00
Enrico Weigelt, metux IT consult
8a8c29165a
os: xserver_poll: skip defining symbols already defined by mingw
...
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-macos (push) Waiting to run
Build X servers / Release pushed tag (push) Waiting to run
mingw already has struct pollfd and POLL* defines.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-08-05 16:20:56 +02:00
Enrico Weigelt, metux IT consult
c4ebb312d0
os: ospoll: add missing include of <assert.h>
...
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-macos (push) Waiting to run
Build X servers / Release pushed tag (push) Waiting to run
We're using assert() here, so need to include <assert.h>
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-08-05 15:15:14 +02:00
Enrico Weigelt, metux IT consult
cbd5a06c81
record: stop using request length fields
...
The request struct's length fields aren't used anymore - we have the
client->req_len field instead, which also is bigreq-compatible.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-08-05 15:08:28 +02:00
Enrico Weigelt, metux IT consult
c64055b064
os: ospoll: use stdbool instead of X11's Bool
...
Low level OS specific code should not depend on higher level protocol
headers. This also removes yet another conflict with win32/mingw headers.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-08-05 15:07:09 +02:00
Enrico Weigelt, metux IT consult
a425c0c00f
os: ospoll: add missing include of <string.h>
...
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-macos (push) Waiting to run
Build X servers / Release pushed tag (push) Waiting to run
Needed for memmove()
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-08-05 15:02:37 +02:00
Collin
5c48fa8f09
XKBMAlloc: Solve CodeQL Alert Potential use after double free
2025-08-05 14:56:02 +02:00
Enrico Weigelt, metux IT consult
e91977eeee
os: ospoll: use realloc() instead of reallocarray()
...
MacOS doesn't support reallocarray(), and we can't include os.h here
on win32/mingw.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-08-05 14:44:39 +02:00
Enrico Weigelt, metux IT consult
1a0b8ac61b
xwin: fix missing prototype of parse_file()
...
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-08-05 14:44:30 +02:00
Collin
6c6cbbdc57
screen: initialize rootDepth to zero to fix uninitialized-variable warning
2025-08-05 14:44:22 +02:00
Enrico Weigelt, metux IT consult
2423f98886
xfree86: fbdevhw: fix fbdevHWInit() parameter
...
device name should be const char *.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-08-05 14:44:15 +02:00
Enrico Weigelt, metux IT consult
502f8d8506
Xnamespace: fix wrong const char* authProto
...
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-macos (push) Waiting to run
Build X servers / Release pushed tag (push) Waiting to run
The authProto field always is assigned to dynamically allocated buffer
(strdup()'ed) and needs to be freed sometimes, so cannot be const.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-08-05 14:13:14 +02:00
Enrico Weigelt, metux IT consult
c02a382641
meson: move MAXCLIENTS and LIMITCLIENTS into dix-config.h
...
Both are potentially tunable variables, and MAXCLIENTS is (still) used by
intel-driver, but also by os specific parts that must not include misc.h
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-08-05 14:10:47 +02:00
Enrico Weigelt, metux IT consult
a8fa4cba7a
xfree86: i2c: constify I2CBusRec::name
...
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-macos (push) Waiting to run
Build X servers / Release pushed tag (push) Waiting to run
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-08-05 13:26:12 +02:00
Enrico Weigelt, metux IT consult
818001db61
xfree86: fbdevhw: fix fbdevHWProbe() parameter
...
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-macos (push) Waiting to run
Build X servers / Release pushed tag (push) Waiting to run
the device name parameter should be const char *.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-08-05 12:57:40 +02:00
Enrico Weigelt, metux IT consult
968500535e
meson: move MAXCLIENTS and LIMITCLIENTS into dix-config.h
...
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-macos (push) Waiting to run
Build X servers / Release pushed tag (push) Waiting to run
Both are potentially tunable variables, and MAXCLIENTS is (still) used by
intel-driver, but also by os specific parts that must not include misc.h
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-08-05 12:31:52 +02:00
Oleh Nykyforchyn
be49153822
xserver: miext/sync/meson.build: compile misyncshm.c if xshmfence found
...
It is a patch that fixes xserver build if libdrm is too old.
Now misyncshm.c compilation depends on dri3, which is incorrect. If libdrm
is not recent enough, then dri3 is not built, the file misyncshm.c
is not compiled, and the function miSyncShmScreenInit() is unavailable.
It is called in glamor_sync.c if xshmfence is present, which causes
a compilation error. This patch makes misyncshm.c compile if xshmfence
is found.
Signed-off-by: Oleh Nykyforchyn <olen.nyk@gmail.com>
2025-08-05 12:30:31 +02:00
Enrico Weigelt, metux IT consult
d8925febf6
xfree86: fix xf86I2CBusInit() prototype
...
name parameter should be const char *
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-08-05 12:30:23 +02:00
Enrico Weigelt, metux IT consult
e9c7aa82e9
xfree86: drm_platform: fix warning on potentially unitialized variable
...
../hw/xfree86/os-support/shared/drm_platform.c:37:13: warning: variable 'paused' is uninitialized when used here [-Wuninitialized]
37 | if (paused) {
| ^~~~~~
../hw/xfree86/os-support/shared/drm_platform.c:31:16: note: initialize the variable 'paused' to silence this warning
31 | Bool paused, server_fd = FALSE;
| ^
| = 0
1 warning generated.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-08-05 12:30:09 +02:00
Enrico Weigelt, metux IT consult
05218ba841
mi: use %lu instead of %zu in ErrorF() call
...
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-macos (push) Waiting to run
Build X servers / Release pushed tag (push) Waiting to run
mingw doens't support `%zu` printf pattern yet.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-08-05 12:10:01 +02:00
Enrico Weigelt, metux IT consult
69be353387
os: ospoll: drop not needed including of X11 headers
...
Those just conflicting with win32/mingw headers on type `BOOL`.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-08-05 12:09:47 +02:00
Enrico Weigelt, metux IT consult
44ec9b0e5b
xwin: win.h: missing include of dix/dix_priv.h
...
Needed for dixAddAtom()
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-08-05 12:09:39 +02:00
Enrico Weigelt, metux IT consult
d1ec096041
Xnamespace: fix printf patterns
...
For printing 32bit integers, we need to use PR*32 macros.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-08-05 12:09:31 +02:00
Enrico Weigelt, metux IT consult
0c33925ab0
kdrive: allow win32 build w/o sysv ipc
...
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-macos (push) Waiting to run
Build X servers / Release pushed tag (push) Waiting to run
Win32 doesn't have SysV IPC, so we need to build it w/o this here.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-08-05 11:55:09 +02:00
Enrico Weigelt, metux IT consult
b95741cbd5
README.md: update amdgpu driver version
...
update to xlibre-xf86-video-amdgpu-23.0.0.2
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-08-05 11:56:04 +02:00
Enrico Weigelt, metux IT consult
9124d0321a
os: xprintf: fix includes
...
It's better coding style to include the header with prototypes for
our own functions directly, instead of relying on it being included
indirectly.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-08-05 11:46:12 +02:00
Enrico Weigelt, metux IT consult
1e214abf9d
xwin: fix unused variables in winSetShapeMultiWindow()
...
Fix warnings on unused variables.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-08-05 11:46:03 +02:00
Enrico Weigelt, metux IT consult
265adf240c
.github: fix intel driver repo url
...
Should not have `.git` suffix.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-08-05 11:47:44 +02:00
Varad Dixit
d884b8aa94
Fix minor punctuation error in manual page
...
Change one occurence of 'comma separated' to 'comma-separated' in manual page
2025-08-05 11:47:10 +02:00
Enrico Weigelt, metux IT consult
5ff91a0c35
dix: inpututils: don't use %hhx printf pattern
...
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-macos (push) Waiting to run
Build X servers / Release pushed tag (push) Waiting to run
mingw's printf() doesn't understand it yet, and it's not really
important here, so just use `%hx` instead.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-08-05 11:39:53 +02:00
Enrico Weigelt, metux IT consult
8e84c35431
dix: macro for checking X protocol types
...
The X protocol types from xorgproto all have corresponding sz_<typename>
defines with their actual network payload size (this can be checked via
SIZEOF() macro).
In theory, this should always be the same as sizeof(), but just to be sure,
adding a macro for a static assert on that.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-08-05 11:38:53 +02:00
Enrico Weigelt, metux IT consult
96b0e59066
kdrive: ephyr: don't use %hhu in error messages
...
The win32/mingw libc doesn't support this conversion type.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-08-05 11:32:46 +02:00
Enrico Weigelt, metux IT consult
4c5a3a6f58
glamor: don't redefine ALIGN macro if it exists
...
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-macos (push) Waiting to run
Build X servers / Release pushed tag (push) Waiting to run
On FreeBSD the ALIGN macro already exists in the standard headers,
so we sholdn't redefine it here.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-08-05 11:17:06 +02:00
Enrico Weigelt, metux IT consult
2e0c442567
kdrive: ephyr: include glamor_priv.h only when glamor is enabled
...
Necessary for building on platforms without any GL at all.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-08-05 11:16:56 +02:00
Enrico Weigelt, metux IT consult
d14679ff29
kdrive: xephyr: link pthread on mingw for nanosleep()
...
For strange reaons, nanosleep() is in libpthread on mingw platform,
so we have to link it here.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-08-05 11:16:47 +02:00
Joseph Crowell
73db0ed5d4
xfree86: drivers: common: remove incorrect #ifndef _XORG_CONFIG_H_
...
These functions are not defined anywhere else and are still necessary in the AMD drivers when using #include <xorg-config.h>
2025-08-05 11:16:34 +02:00
Enrico Weigelt, metux IT consult
6c7f39032f
glx: fix duplicate typedef
...
../glx/indirect_table.c
In file included from ../glx/indirect_table.c:28:
In file included from ../glx/glxserver.h:66:
../include/glx_extinit.h:33:28: warning: redefinition of typedef '__GLXscreen' is a C11 feature [-Wtypedef-redefinition]
33 | typedef struct __GLXscreen __GLXscreen;
| ^
../glx/glxscreens.h:113:28: note: previous definition is here
113 | typedef struct __GLXscreen __GLXscreen;
| ^
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-08-05 11:15:56 +02:00
Enrico Weigelt, metux IT consult
b766775eb0
Xnamespace: fix possible memleak
...
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-macos (push) Waiting to run
Build X servers / Release pushed tag (push) Waiting to run
In an OOM error path, we've forgotten an free() call.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-08-05 10:13:55 +02:00
Enrico Weigelt, metux IT consult
0102f4361f
kdrive: ephyr: don't try to install handler for SIGUSR1 on win32
...
Build X servers / xserver-build-ubuntu (push) Has been cancelled
Build X servers / drivers-build-ubuntu (push) Has been cancelled
Build X servers / xserver-build-macos (push) Has been cancelled
Build X servers / Release pushed tag (push) Has been cancelled
Windows has no Unix-type signals.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-08-01 17:18:12 +02:00