mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 08:04:30 +00:00
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:
committed by
Enrico Weigelt
parent
be49153822
commit
968500535e
@@ -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')
|
||||
|
||||
|
||||
@@ -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 */
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user