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>
This commit is contained in:
Enrico Weigelt, metux IT consult
2025-07-25 14:04:07 +02:00
committed by Enrico Weigelt
parent be49153822
commit 968500535e
5 changed files with 11 additions and 3 deletions

View File

@@ -204,6 +204,12 @@ conf_data.set('TCPCONN', '1')
conf_data.set('UNIXCONN', host_machine.system() != 'windows' ? '1' : false)
conf_data.set('IPv6', build_ipv6 ? '1' : false)
# potentially tunable - needed also in places that cannot include misc.h
conf_data.set('MAXCLIENTS', 2048)
# Must be a power of 2 and <= MAXCLIENTS */
conf_data.set('DIX_LIMITCLIENTS', 256)
# some drivers (eg. xf86-video-intel) still relying on this symbol being set
conf_data.set('COMPOSITE', '1')

View File

@@ -87,7 +87,6 @@ OF THIS SOFTWARE.
#ifndef MAXGPUSCREENS
#define MAXGPUSCREENS 16
#endif
#define MAXCLIENTS 2048
#define MAXFORMATS 8
#ifndef MAXDEVICES
#define MAXDEVICES 256 /* input devices */

View File

@@ -205,6 +205,9 @@
/* byte order */
#mesondefine X_BYTE_ORDER
/* maximum number of clients */
#mesondefine MAXCLIENTS
/* announce server API features */
#define XORG_API_DIX_SCREEN_HOOK_WINDOW_DESTROY 1
#define XORG_API_DIX_SCREEN_HOOK_WINDOW_POSITION 1