159b03e137
Add support for multi-seat-aware input device hotplugging. This implements the multi-seat scheme explained here: http://www.freedesktop.org/wiki/Software/systemd/multiseat This introduces a new X server switch "-seat" which allows configuration of the seat to enumerate hotplugging devices on. If specified the value of this parameter will also be exported as root window property Xorg_Seat. To properly support input hotplugging devices need to be tagged in udev according to the seat they are on. Untagged devices are assumed to be on the default seat "seat0". If no "-seat" parameter is passed only devices on "seat0" are used. This means that the new scheme is perfectly compatible with existing setups which have no tagged input devices. Note that the -seat switch takes a completely generic identifier, and that it has no effect on non-Linux systems. In fact, on other OSes a completely different identifier scheme for seats could be used but still be exposed with the Xorg_Seat and -seat. I tried to follow the coding style of the surrounding code blocks if there was any one could follow. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
126 lines
2.5 KiB
C
126 lines
2.5 KiB
C
|
|
#ifndef _XSERV_GLOBAL_H_
|
|
#define _XSERV_GLOBAL_H_
|
|
|
|
#include "window.h" /* for WindowPtr */
|
|
|
|
/* Global X server variables that are visible to mi, dix, os, and ddx */
|
|
|
|
extern _X_EXPORT CARD32 defaultScreenSaverTime;
|
|
extern _X_EXPORT CARD32 defaultScreenSaverInterval;
|
|
extern _X_EXPORT CARD32 ScreenSaverTime;
|
|
extern _X_EXPORT CARD32 ScreenSaverInterval;
|
|
|
|
#ifdef SCREENSAVER
|
|
extern _X_EXPORT Bool screenSaverSuspended;
|
|
#endif
|
|
|
|
extern _X_EXPORT char *defaultFontPath;
|
|
extern _X_EXPORT int monitorResolution;
|
|
extern _X_EXPORT int defaultColorVisualClass;
|
|
|
|
extern _X_EXPORT int GrabInProgress;
|
|
extern _X_EXPORT Bool noTestExtensions;
|
|
extern _X_EXPORT char *SeatId;
|
|
extern _X_EXPORT char *ConnectionInfo;
|
|
|
|
#ifdef DPMSExtension
|
|
extern _X_EXPORT CARD32 DPMSStandbyTime;
|
|
extern _X_EXPORT CARD32 DPMSSuspendTime;
|
|
extern _X_EXPORT CARD32 DPMSOffTime;
|
|
extern _X_EXPORT CARD16 DPMSPowerLevel;
|
|
extern _X_EXPORT Bool DPMSEnabled;
|
|
extern _X_EXPORT Bool DPMSDisabledSwitch;
|
|
extern _X_EXPORT Bool DPMSCapableFlag;
|
|
#endif
|
|
|
|
#ifdef PANORAMIX
|
|
extern _X_EXPORT Bool PanoramiXExtensionDisabledHack;
|
|
#endif
|
|
|
|
#ifdef COMPOSITE
|
|
extern _X_EXPORT Bool noCompositeExtension;
|
|
#endif
|
|
|
|
#ifdef DAMAGE
|
|
extern _X_EXPORT Bool noDamageExtension;
|
|
#endif
|
|
|
|
#ifdef DBE
|
|
extern _X_EXPORT Bool noDbeExtension;
|
|
#endif
|
|
|
|
#ifdef DPMSExtension
|
|
extern _X_EXPORT Bool noDPMSExtension;
|
|
#endif
|
|
|
|
#ifdef GLXEXT
|
|
extern _X_EXPORT Bool noGlxExtension;
|
|
#endif
|
|
|
|
#ifdef SCREENSAVER
|
|
extern _X_EXPORT Bool noScreenSaverExtension;
|
|
#endif
|
|
|
|
#ifdef MITSHM
|
|
extern _X_EXPORT Bool noMITShmExtension;
|
|
#endif
|
|
|
|
#ifdef RANDR
|
|
extern _X_EXPORT Bool noRRExtension;
|
|
#endif
|
|
|
|
extern _X_EXPORT Bool noRenderExtension;
|
|
|
|
#ifdef XCSECURITY
|
|
extern _X_EXPORT Bool noSecurityExtension;
|
|
#endif
|
|
|
|
#ifdef RES
|
|
extern _X_EXPORT Bool noResExtension;
|
|
#endif
|
|
|
|
#ifdef XF86BIGFONT
|
|
extern _X_EXPORT Bool noXFree86BigfontExtension;
|
|
#endif
|
|
|
|
#ifdef XFreeXDGA
|
|
extern _X_EXPORT Bool noXFree86DGAExtension;
|
|
#endif
|
|
|
|
#ifdef XF86DRI
|
|
extern _X_EXPORT Bool noXFree86DRIExtension;
|
|
#endif
|
|
|
|
#ifdef XF86VIDMODE
|
|
extern _X_EXPORT Bool noXFree86VidModeExtension;
|
|
#endif
|
|
|
|
#ifdef XFIXES
|
|
extern _X_EXPORT Bool noXFixesExtension;
|
|
#endif
|
|
|
|
#ifdef PANORAMIX
|
|
extern _X_EXPORT Bool noPanoramiXExtension;
|
|
#endif
|
|
|
|
#ifdef XSELINUX
|
|
extern _X_EXPORT Bool noSELinuxExtension;
|
|
|
|
#define SELINUX_MODE_DEFAULT 0
|
|
#define SELINUX_MODE_DISABLED 1
|
|
#define SELINUX_MODE_PERMISSIVE 2
|
|
#define SELINUX_MODE_ENFORCING 3
|
|
extern _X_EXPORT int selinuxEnforcingState;
|
|
#endif
|
|
|
|
#ifdef XV
|
|
extern _X_EXPORT Bool noXvExtension;
|
|
#endif
|
|
|
|
#ifdef DRI2
|
|
extern _X_EXPORT Bool noDRI2Extension;
|
|
#endif
|
|
|
|
#endif /* !_XSERV_GLOBAL_H_ */
|