mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-20 16:20:03 +01:00
Merge branch 'mi-revert' into 'master'
Revert all commits that have broken libvnc.so Closes #1855 See merge request xorg/xserver!2102
This commit is contained in:
commit
a6500098ef
117 changed files with 656 additions and 599 deletions
|
|
@ -30,14 +30,12 @@ from The Open Group.
|
|||
|
||||
#include <X11/X.h>
|
||||
#include <X11/Xproto.h>
|
||||
#include <X11/extensions/bigreqsproto.h>
|
||||
|
||||
#include "dix/dix_priv.h"
|
||||
|
||||
#include "misc.h"
|
||||
#include "os.h"
|
||||
#include "dixstruct.h"
|
||||
#include "dix_priv.h"
|
||||
#include "extnsionst.h"
|
||||
#include <X11/extensions/bigreqsproto.h>
|
||||
#include "opaque.h"
|
||||
#include "extinit_priv.h"
|
||||
|
||||
|
|
|
|||
|
|
@ -46,6 +46,7 @@ in this Software without prior written authorization from the X Consortium.
|
|||
#include "extnsionst.h"
|
||||
#include "dixstruct.h"
|
||||
#include "resource.h"
|
||||
#include "opaque.h"
|
||||
#include "gcstruct.h"
|
||||
#include "cursorstr.h"
|
||||
#include "colormapst.h"
|
||||
|
|
|
|||
|
|
@ -67,6 +67,7 @@ PERFORMANCE OF THIS SOFTWARE.
|
|||
#include "dixstruct.h"
|
||||
#include "pixmapstr.h"
|
||||
#include "resource.h"
|
||||
#include "opaque.h"
|
||||
#include "syncsrv.h"
|
||||
#include "syncsdk.h"
|
||||
#include "protocol-versions.h"
|
||||
|
|
|
|||
36
Xext/xace.h
36
Xext/xace.h
|
|
@ -55,29 +55,31 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|||
#define XACE_KEY_AVAIL 14
|
||||
#define XACE_NUM_HOOKS 15
|
||||
|
||||
extern CallbackListPtr XaceHooks[XACE_NUM_HOOKS];
|
||||
extern _X_EXPORT CallbackListPtr XaceHooks[XACE_NUM_HOOKS];
|
||||
|
||||
/* Entry point for hook functions. Called by Xserver.
|
||||
* Required by libdbe and libextmod
|
||||
*/
|
||||
/* needs to be exported for in-tree modsetting driver, but not part
|
||||
of public API for external modules */
|
||||
_X_EXPORT int XaceHook(int hook, ... /* appropriate args for hook */);
|
||||
extern _X_EXPORT int XaceHook(int /*hook */ ,
|
||||
... /*appropriate args for hook */
|
||||
);
|
||||
|
||||
/* determine whether any callbacks are present for the XACE hook */
|
||||
int XaceHookIsSet(int hook);
|
||||
extern _X_EXPORT int XaceHookIsSet(int hook);
|
||||
|
||||
/* Special-cased hook functions
|
||||
*/
|
||||
int XaceHookDispatch0(ClientPtr ptr, int major);
|
||||
int XaceHookDispatch0(ClientPtr client, int major);
|
||||
#define XaceHookDispatch(c, m) \
|
||||
((XaceHooks[XACE_EXT_DISPATCH] && (m) >= EXTENSION_BASE) ? \
|
||||
XaceHookDispatch0((c), (m)) : \
|
||||
Success)
|
||||
|
||||
int XaceHookPropertyAccess(ClientPtr ptr, WindowPtr pWin, PropertyPtr *ppProp,
|
||||
Mask access_mode);
|
||||
int XaceHookSelectionAccess(ClientPtr ptr, Selection ** ppSel, Mask access_mode);
|
||||
extern _X_EXPORT int XaceHookPropertyAccess(ClientPtr ptr, WindowPtr pWin,
|
||||
PropertyPtr *ppProp,
|
||||
Mask access_mode);
|
||||
extern _X_EXPORT int XaceHookSelectionAccess(ClientPtr ptr, Selection ** ppSel,
|
||||
Mask access_mode);
|
||||
|
||||
/* needs to be exported for in-tree modsetting, but not part of public API */
|
||||
_X_EXPORT int XaceHookResourceAccess(ClientPtr client, XID id, RESTYPE rtype, void *res,
|
||||
|
|
@ -109,18 +111,18 @@ int XaceHookKeyAvail(xEventPtr ev, DeviceIntPtr dev, int count);
|
|||
|
||||
/* XTrans wrappers for use by security modules
|
||||
*/
|
||||
int XaceGetConnectionNumber(ClientPtr ptr);
|
||||
int XaceIsLocal(ClientPtr ptr);
|
||||
extern _X_EXPORT int XaceGetConnectionNumber(ClientPtr ptr);
|
||||
extern _X_EXPORT int XaceIsLocal(ClientPtr ptr);
|
||||
|
||||
/* From the original Security extension...
|
||||
*/
|
||||
|
||||
void XaceCensorImage(ClientPtr client,
|
||||
RegionPtr pVisibleRegion,
|
||||
long widthBytesLine,
|
||||
DrawablePtr pDraw,
|
||||
int x, int y, int w, int h,
|
||||
unsigned int format, char *pBuf);
|
||||
extern _X_EXPORT void XaceCensorImage(ClientPtr client,
|
||||
RegionPtr pVisibleRegion,
|
||||
long widthBytesLine,
|
||||
DrawablePtr pDraw,
|
||||
int x, int y, int w, int h,
|
||||
unsigned int format, char *pBuf);
|
||||
|
||||
#else /* XACE */
|
||||
|
||||
|
|
|
|||
|
|
@ -38,7 +38,6 @@
|
|||
#include "dix/input_priv.h"
|
||||
#include "dix/dix_priv.h"
|
||||
#include "dix/exevents_priv.h"
|
||||
#include "mi/mi_priv.h"
|
||||
#include "mi/mipointer_priv.h"
|
||||
#include "os/client_priv.h"
|
||||
#include "os/osdep.h"
|
||||
|
|
@ -52,6 +51,7 @@
|
|||
#include "scrnintstr.h"
|
||||
#include "dixevents.h"
|
||||
#include "sleepuntil.h"
|
||||
#include "mi.h"
|
||||
#include "xkbsrv.h"
|
||||
#include "xkbstr.h"
|
||||
#include "exglobals.h"
|
||||
|
|
|
|||
|
|
@ -60,6 +60,7 @@ SOFTWARE.
|
|||
#include "dix/input_priv.h"
|
||||
|
||||
#include "exglobals.h"
|
||||
|
||||
#include "allowev.h"
|
||||
#include "dixevents.h"
|
||||
|
||||
|
|
|
|||
|
|
@ -93,7 +93,6 @@ SOFTWARE.
|
|||
#include "dix/eventconvert.h"
|
||||
#include "dix/exevents_priv.h"
|
||||
#include "dix/input_priv.h"
|
||||
#include "mi/mi_priv.h"
|
||||
|
||||
#include "inputstr.h"
|
||||
#include "windowstr.h"
|
||||
|
|
@ -109,6 +108,7 @@ SOFTWARE.
|
|||
#include "xiquerydevice.h" /* For List*Info */
|
||||
#include "eventstr.h"
|
||||
#include "inpututils.h"
|
||||
#include "mi.h"
|
||||
#include "xkbsrv.h"
|
||||
|
||||
#define WID(w) ((w) ? ((w)->drawable.id) : 0)
|
||||
|
|
|
|||
|
|
@ -53,6 +53,9 @@ SOFTWARE.
|
|||
|
||||
#include <dix-config.h>
|
||||
|
||||
#include "inputstr.h"
|
||||
#include "gcstruct.h" /* pointer for extnsionst.h */
|
||||
#include "extnsionst.h" /* extension entry */
|
||||
#include <X11/extensions/XI.h>
|
||||
#include <X11/extensions/XIproto.h>
|
||||
#include <X11/extensions/XI2proto.h>
|
||||
|
|
@ -65,6 +68,7 @@ SOFTWARE.
|
|||
#include "gcstruct.h" /* pointer for extnsionst.h */
|
||||
#include "extnsionst.h" /* extension entry */
|
||||
#include "geext.h" /* extension interfaces for ge */
|
||||
|
||||
#include "dixevents.h"
|
||||
#include "extinit_priv.h"
|
||||
#include "exglobals.h"
|
||||
|
|
|
|||
|
|
@ -52,15 +52,13 @@ SOFTWARE.
|
|||
|
||||
#include <dix-config.h>
|
||||
|
||||
#include <X11/extensions/XI.h>
|
||||
#include <X11/extensions/XIproto.h>
|
||||
|
||||
#include "dix/dix_priv.h"
|
||||
|
||||
#include "inputstr.h" /* DeviceIntPtr */
|
||||
#include "windowstr.h" /* window structure */
|
||||
#include <X11/extensions/XI.h>
|
||||
#include <X11/extensions/XIproto.h>
|
||||
#include "exglobals.h"
|
||||
#include "dixevents.h" /* GrabDevice */
|
||||
|
||||
#include "grabdev.h"
|
||||
|
||||
extern XExtEventInfo EventInfo[];
|
||||
|
|
|
|||
|
|
@ -52,16 +52,15 @@ SOFTWARE.
|
|||
|
||||
#include <dix-config.h>
|
||||
|
||||
#include "windowstr.h" /* focus struct */
|
||||
#include "inputstr.h" /* DeviceIntPtr */
|
||||
#include <X11/extensions/XI.h>
|
||||
#include <X11/extensions/XIproto.h>
|
||||
|
||||
#include "windowstr.h" /* focus struct */
|
||||
#include "inputstr.h" /* DeviceIntPtr */
|
||||
|
||||
#include "dix/dix_priv.h"
|
||||
|
||||
#include "dixevents.h"
|
||||
|
||||
#include "exglobals.h"
|
||||
|
||||
#include "setfocus.h"
|
||||
|
||||
/***********************************************************************
|
||||
|
|
|
|||
|
|
@ -45,7 +45,6 @@
|
|||
|
||||
#include "dix/dix_priv.h"
|
||||
#include "dix/input_priv.h"
|
||||
#include "mi/mi_priv.h"
|
||||
|
||||
#include "xibarriers.h"
|
||||
#include "scrnintstr.h"
|
||||
|
|
@ -59,6 +58,7 @@
|
|||
#include "list.h"
|
||||
#include "exglobals.h"
|
||||
#include "eventstr.h"
|
||||
#include "mi.h"
|
||||
|
||||
RESTYPE PointerBarrierType;
|
||||
|
||||
|
|
|
|||
|
|
@ -45,12 +45,17 @@
|
|||
#include "inputstr.h" /* DeviceIntPtr */
|
||||
#include "windowstr.h" /* window structure */
|
||||
#include "scrnintstr.h" /* screen structure */
|
||||
#include <X11/extensions/XI.h>
|
||||
#include <X11/extensions/XI2proto.h>
|
||||
#include <X11/extensions/geproto.h>
|
||||
#include "extnsionst.h"
|
||||
#include "exglobals.h"
|
||||
#include "misc.h"
|
||||
#include "xace.h"
|
||||
#include "xiquerydevice.h" /* for GetDeviceUse */
|
||||
|
||||
#include "xkbsrv.h"
|
||||
|
||||
#include "xichangehierarchy.h"
|
||||
#include "xibarriers.h"
|
||||
|
||||
|
|
|
|||
|
|
@ -31,6 +31,8 @@
|
|||
|
||||
#include <dix-config.h>
|
||||
|
||||
#include "inputstr.h" /* DeviceIntPtr */
|
||||
#include "windowstr.h" /* window structure */
|
||||
#include <X11/extensions/XI2.h>
|
||||
#include <X11/extensions/XI2proto.h>
|
||||
|
||||
|
|
|
|||
|
|
@ -30,13 +30,11 @@
|
|||
|
||||
#include <dix-config.h>
|
||||
|
||||
#include "inputstr.h" /* DeviceIntPtr */
|
||||
#include "windowstr.h" /* window structure */
|
||||
#include <X11/extensions/XI2.h>
|
||||
#include <X11/extensions/XI2proto.h>
|
||||
|
||||
#include "dix/dix_priv.h"
|
||||
|
||||
#include "inputstr.h" /* DeviceIntPtr */
|
||||
#include "windowstr.h" /* window structure */
|
||||
#include "exglobals.h" /* BadDevice */
|
||||
#include "xisetdevfocus.h"
|
||||
|
||||
|
|
|
|||
|
|
@ -8,7 +8,6 @@
|
|||
#include <X11/Xdefs.h>
|
||||
#include <X11/Xproto.h>
|
||||
|
||||
#include "dix/screenint_priv.h"
|
||||
#include "include/colormap.h"
|
||||
#include "include/dix.h"
|
||||
#include "include/window.h"
|
||||
|
|
|
|||
|
|
@ -48,9 +48,6 @@ SOFTWARE.
|
|||
|
||||
#include <X11/X.h>
|
||||
#include <X11/Xmd.h>
|
||||
|
||||
#include "dix/dix_priv.h"
|
||||
|
||||
#include "servermd.h"
|
||||
#include "scrnintstr.h"
|
||||
#include "dixstruct.h"
|
||||
|
|
|
|||
|
|
@ -60,7 +60,6 @@ SOFTWARE.
|
|||
#include "dix/exevents_priv.h"
|
||||
#include "dix/input_priv.h"
|
||||
#include "dix/ptrveloc_priv.h"
|
||||
#include "mi/mi_priv.h"
|
||||
#include "os/osdep.h"
|
||||
#include "xkb/xkbsrv_priv.h"
|
||||
|
||||
|
|
@ -74,6 +73,7 @@ SOFTWARE.
|
|||
#include "ptrveloc.h"
|
||||
#include "privates.h"
|
||||
#include "xace.h"
|
||||
#include "mi.h"
|
||||
#include "dispatch.h"
|
||||
#include "swaprep.h"
|
||||
#include "dixevents.h"
|
||||
|
|
|
|||
|
|
@ -100,6 +100,9 @@ Equipment Corporation.
|
|||
#include <version-config.h>
|
||||
|
||||
#include <stddef.h>
|
||||
#include "dix/registry_priv.h"
|
||||
|
||||
#include "windowstr.h"
|
||||
#include <X11/fonts/fontstruct.h>
|
||||
#include <X11/fonts/libxfont2.h>
|
||||
|
||||
|
|
@ -108,16 +111,15 @@ Equipment Corporation.
|
|||
#include "dix/input_priv.h"
|
||||
#include "dix/gc_priv.h"
|
||||
#include "dix/registry_priv.h"
|
||||
#include "dix/screenint_priv.h"
|
||||
#include "include/resource.h"
|
||||
#include "os/auth.h"
|
||||
#include "os/client_priv.h"
|
||||
#include "os/ddx_priv.h"
|
||||
#include "os/osdep.h"
|
||||
#include "os/screensaver.h"
|
||||
|
||||
#include "windowstr.h"
|
||||
#include "dixfontstr.h"
|
||||
#include "dix_priv.h"
|
||||
#include "gcstruct.h"
|
||||
#include "selection.h"
|
||||
#include "colormapst.h"
|
||||
|
|
@ -4147,4 +4149,3 @@ DetachOffloadGPU(ScreenPtr secondary)
|
|||
assert(secondary->is_offload_secondary);
|
||||
secondary->is_offload_secondary = FALSE;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@
|
|||
#include "dix/dix_priv.h"
|
||||
#include "include/dix.h"
|
||||
#include "include/screenint.h"
|
||||
#include "opaque.h"
|
||||
|
||||
const char *display = "0";
|
||||
int displayfd = -1;
|
||||
|
|
|
|||
183
dix/dix_priv.h
183
dix/dix_priv.h
|
|
@ -15,35 +15,18 @@
|
|||
|
||||
#include <X11/Xdefs.h>
|
||||
#include <X11/Xfuncproto.h>
|
||||
#include <X11/extensions/XI.h>
|
||||
|
||||
#include "include/callback.h"
|
||||
#include "include/cursor.h"
|
||||
#include "include/dix.h"
|
||||
#include "include/events.h"
|
||||
#include "include/gc.h"
|
||||
#include "include/input.h"
|
||||
#include "include/window.h"
|
||||
|
||||
/* server setting: maximum size for big requests */
|
||||
#define MAX_BIG_REQUEST_SIZE 4194303
|
||||
extern long maxBigRequestSize;
|
||||
|
||||
extern char dispatchExceptionAtReset;
|
||||
extern int terminateDelay;
|
||||
extern Bool touchEmulatePointer;
|
||||
|
||||
extern HWEventQueuePtr checkForInput[2];
|
||||
|
||||
/* -retro mode */
|
||||
extern Bool party_like_its_1989;
|
||||
|
||||
static inline _X_NOTSAN Bool
|
||||
InputCheckPending(void)
|
||||
{
|
||||
return (*checkForInput[0] != *checkForInput[1]);
|
||||
}
|
||||
|
||||
void ClearWorkQueue(void);
|
||||
void ProcessWorkQueue(void);
|
||||
void ProcessWorkQueueZombies(void);
|
||||
|
|
@ -86,170 +69,4 @@ int dixLookupClient(ClientPtr *result,
|
|||
ClientPtr client,
|
||||
Mask access_mode);
|
||||
|
||||
Bool CreateConnectionBlock(void);
|
||||
|
||||
void EnableLimitedSchedulingLatency(void);
|
||||
|
||||
void DisableLimitedSchedulingLatency(void);
|
||||
|
||||
int dix_main(int argc, char *argv[], char *envp[]);
|
||||
|
||||
void SetMaskForEvent(int deviceid, Mask mask, int event);
|
||||
|
||||
void EnqueueEvent(InternalEvent *ev, DeviceIntPtr device);
|
||||
|
||||
void PlayReleasedEvents(void);
|
||||
|
||||
void ActivatePointerGrab(DeviceIntPtr mouse,
|
||||
GrabPtr grab,
|
||||
TimeStamp time,
|
||||
Bool autoGrab);
|
||||
|
||||
void DeactivatePointerGrab(DeviceIntPtr mouse);
|
||||
|
||||
void ActivateKeyboardGrab(DeviceIntPtr keybd,
|
||||
GrabPtr grab,
|
||||
TimeStamp time,
|
||||
Bool passive);
|
||||
|
||||
void DeactivateKeyboardGrab(DeviceIntPtr keybd);
|
||||
|
||||
BOOL ActivateFocusInGrab(DeviceIntPtr dev, WindowPtr old, WindowPtr win);
|
||||
|
||||
void AllowSome(ClientPtr client,
|
||||
TimeStamp time,
|
||||
DeviceIntPtr thisDev,
|
||||
int newState);
|
||||
|
||||
void ReleaseActiveGrabs(ClientPtr client);
|
||||
|
||||
GrabPtr CheckPassiveGrabsOnWindow(WindowPtr pWin,
|
||||
DeviceIntPtr device,
|
||||
InternalEvent *event,
|
||||
BOOL checkCore,
|
||||
BOOL activate);
|
||||
|
||||
int DeliverDeviceEvents(WindowPtr pWin,
|
||||
InternalEvent *event,
|
||||
GrabPtr grab,
|
||||
WindowPtr stopAt,
|
||||
DeviceIntPtr dev);
|
||||
|
||||
int DeliverOneGrabbedEvent(InternalEvent *event,
|
||||
DeviceIntPtr dev,
|
||||
enum InputLevel level);
|
||||
|
||||
void DeliverTouchEvents(DeviceIntPtr dev,
|
||||
TouchPointInfoPtr ti,
|
||||
InternalEvent *ev,
|
||||
XID resource);
|
||||
|
||||
Bool DeliverGestureEventToOwner(DeviceIntPtr dev,
|
||||
GestureInfoPtr gi,
|
||||
InternalEvent *ev);
|
||||
|
||||
void InitializeSprite(DeviceIntPtr pDev, WindowPtr pWin);
|
||||
void FreeSprite(DeviceIntPtr pDev);
|
||||
void UpdateSpriteForScreen(DeviceIntPtr pDev, ScreenPtr pScreen);
|
||||
|
||||
Bool CheckDeviceGrabs(DeviceIntPtr device,
|
||||
InternalEvent *event,
|
||||
WindowPtr ancestor);
|
||||
|
||||
void DeliverFocusedEvent(DeviceIntPtr keybd,
|
||||
InternalEvent *event,
|
||||
WindowPtr window);
|
||||
|
||||
int DeliverGrabbedEvent(InternalEvent *event,
|
||||
DeviceIntPtr thisDev,
|
||||
Bool deactivateGrab);
|
||||
|
||||
void FreezeThisEventIfNeededForSyncGrab(DeviceIntPtr thisDev,
|
||||
InternalEvent *event);
|
||||
|
||||
void FixKeyState(DeviceEvent *event, DeviceIntPtr keybd);
|
||||
|
||||
void RecalculateDeliverableEvents(WindowPtr pWin);
|
||||
|
||||
void DoFocusEvents(DeviceIntPtr dev,
|
||||
WindowPtr fromWin,
|
||||
WindowPtr toWin,
|
||||
int mode);
|
||||
|
||||
int SetInputFocus(ClientPtr client,
|
||||
DeviceIntPtr dev,
|
||||
Window focusID,
|
||||
CARD8 revertTo,
|
||||
Time ctime,
|
||||
Bool followOK);
|
||||
|
||||
int GrabDevice(ClientPtr client,
|
||||
DeviceIntPtr dev,
|
||||
unsigned this_mode,
|
||||
unsigned other_mode,
|
||||
Window grabWindow,
|
||||
unsigned ownerEvents,
|
||||
Time ctime,
|
||||
GrabMask *mask,
|
||||
int grabtype,
|
||||
Cursor curs,
|
||||
Window confineToWin,
|
||||
CARD8 *status);
|
||||
|
||||
void InitEvents(void);
|
||||
|
||||
void CloseDownEvents(void);
|
||||
|
||||
void DeleteWindowFromAnyEvents(WindowPtr pWin, Bool freeResources);
|
||||
|
||||
Mask EventMaskForClient(WindowPtr pWin, ClientPtr client);
|
||||
|
||||
Bool CheckMotion(DeviceEvent *ev, DeviceIntPtr pDev);
|
||||
|
||||
int SetClientPointer(ClientPtr client, DeviceIntPtr device);
|
||||
|
||||
Bool IsInterferingGrab(ClientPtr client, DeviceIntPtr dev, xEvent *events);
|
||||
|
||||
int XItoCoreType(int xi_type);
|
||||
|
||||
Bool DevHasCursor(DeviceIntPtr pDev);
|
||||
|
||||
Bool IsPointerEvent(InternalEvent *event);
|
||||
|
||||
Bool IsTouchEvent(InternalEvent *event);
|
||||
|
||||
Bool IsGestureEvent(InternalEvent *event);
|
||||
|
||||
Bool IsGestureBeginEvent(InternalEvent *event);
|
||||
|
||||
Bool IsGestureEndEvent(InternalEvent *event);
|
||||
|
||||
void CopyKeyClass(DeviceIntPtr device, DeviceIntPtr master);
|
||||
|
||||
int CorePointerProc(DeviceIntPtr dev, int what);
|
||||
|
||||
int CoreKeyboardProc(DeviceIntPtr dev, int what);
|
||||
|
||||
extern Bool whiteRoot;
|
||||
|
||||
extern volatile char isItTimeToYield;
|
||||
|
||||
/* bit values for dispatchException */
|
||||
#define DE_RESET 1
|
||||
#define DE_TERMINATE 2
|
||||
#define DE_PRIORITYCHANGE 4 /* set when a client's priority changes */
|
||||
|
||||
extern volatile char dispatchException;
|
||||
|
||||
extern int ScreenSaverBlanking;
|
||||
extern int ScreenSaverAllowExposures;
|
||||
extern int defaultScreenSaverBlanking;
|
||||
extern int defaultScreenSaverAllowExposures;
|
||||
extern const char *display;
|
||||
extern int displayfd;
|
||||
extern Bool explicit_display;
|
||||
|
||||
extern Bool disableBackingStore;
|
||||
extern Bool enableBackingStore;
|
||||
|
||||
#endif /* _XSERVER_DIX_PRIV_H */
|
||||
|
|
|
|||
|
|
@ -31,7 +31,6 @@
|
|||
#include <X11/extensions/XIproto.h>
|
||||
#include <X11/extensions/XI2proto.h>
|
||||
|
||||
#include "dix/dix_priv.h"
|
||||
#include "dix/eventconvert.h"
|
||||
#include "dix/input_priv.h"
|
||||
|
||||
|
|
|
|||
|
|
@ -37,7 +37,6 @@
|
|||
#include <X11/extensions/XI.h>
|
||||
#include <X11/extensions/XI2.h>
|
||||
|
||||
#include "dix/dix_priv.h"
|
||||
#include "dix/eventconvert.h"
|
||||
#include "dix/exevents_priv.h"
|
||||
|
||||
|
|
|
|||
|
|
@ -29,15 +29,16 @@
|
|||
#include "dix/dixgrabs_priv.h"
|
||||
#include "dix/eventconvert.h"
|
||||
#include "dix/input_priv.h"
|
||||
#include "mi/mi_priv.h"
|
||||
|
||||
#include "inputstr.h"
|
||||
#include "scrnintstr.h"
|
||||
|
||||
#include "eventstr.h"
|
||||
#include "exevents.h"
|
||||
#include "exglobals.h"
|
||||
#include "inpututils.h"
|
||||
#include "windowstr.h"
|
||||
#include "mi.h"
|
||||
|
||||
#define GESTURE_HISTORY_SIZE 100
|
||||
|
||||
|
|
|
|||
|
|
@ -41,7 +41,6 @@
|
|||
#include <X11/extensions/XKBproto.h>
|
||||
|
||||
#include "dix/input_priv.h"
|
||||
#include "mi/mi_priv.h"
|
||||
|
||||
#include "misc.h"
|
||||
#include "resource.h"
|
||||
|
|
@ -55,6 +54,7 @@
|
|||
#include "eventstr.h"
|
||||
#include "eventconvert.h"
|
||||
#include "inpututils.h"
|
||||
#include "mi.h"
|
||||
#include "windowstr.h"
|
||||
|
||||
#include "xkbsrv.h"
|
||||
|
|
|
|||
|
|
@ -48,15 +48,13 @@ SOFTWARE.
|
|||
|
||||
#include <X11/X.h>
|
||||
#include <X11/Xmd.h>
|
||||
|
||||
#include "dix/dix_priv.h"
|
||||
|
||||
#include "misc.h"
|
||||
#include "windowstr.h"
|
||||
#include "scrnintstr.h"
|
||||
#include "input.h"
|
||||
#include "dixfont.h"
|
||||
#include "dixstruct.h"
|
||||
#include "dix_priv.h"
|
||||
#include "os.h"
|
||||
|
||||
ScreenInfo screenInfo;
|
||||
|
|
|
|||
|
|
@ -93,8 +93,6 @@ Equipment Corporation.
|
|||
#include "os/audit.h"
|
||||
#include "os/auth.h"
|
||||
#include "os/client_priv.h"
|
||||
#include "os/cmdline.h"
|
||||
#include "os/ddx_priv.h"
|
||||
#include "os/osdep.h"
|
||||
#include "os/screensaver.h"
|
||||
|
||||
|
|
@ -110,6 +108,10 @@ Equipment Corporation.
|
|||
#include "colormapst.h"
|
||||
#include "cursorstr.h"
|
||||
#include "selection.h"
|
||||
#include <X11/fonts/font.h>
|
||||
#include <X11/fonts/fontstruct.h>
|
||||
#include <X11/fonts/libxfont2.h>
|
||||
#include "opaque.h"
|
||||
#include "servermd.h"
|
||||
#include "dixfont.h"
|
||||
#include "extnsionst.h"
|
||||
|
|
|
|||
|
|
@ -29,11 +29,8 @@ from The Open Group.
|
|||
#include <dix-config.h>
|
||||
|
||||
#include <X11/X.h>
|
||||
#include <X11/extensions/render.h>
|
||||
|
||||
#include "mi/mi_priv.h"
|
||||
|
||||
#include "scrnintstr.h"
|
||||
#include "mi.h"
|
||||
#include "misc.h"
|
||||
#include "os.h"
|
||||
#include "windowstr.h"
|
||||
|
|
@ -41,6 +38,7 @@ from The Open Group.
|
|||
#include "dixstruct.h"
|
||||
#include "gcstruct.h"
|
||||
#include "servermd.h"
|
||||
#include "X11/extensions/render.h"
|
||||
#include "picturestr.h"
|
||||
#include "randrstr.h"
|
||||
/*
|
||||
|
|
|
|||
|
|
@ -1,26 +0,0 @@
|
|||
/* SPDX-License-Identifier: MIT OR X11
|
||||
*
|
||||
* Copyright © 2024 Enrico Weigelt, metux IT consult <info@metux.net>
|
||||
* Copyright © 1987, 1998 The Open Group
|
||||
*/
|
||||
#ifndef _XSERVER_DIX_SCREENINT_PRIV_H
|
||||
#define _XSERVER_DIX_SCREENINT_PRIV_H
|
||||
|
||||
#include <X11/Xdefs.h>
|
||||
|
||||
#include "screenint.h"
|
||||
|
||||
typedef Bool (*ScreenInitProcPtr)(ScreenPtr pScreen, int argc, char **argv);
|
||||
|
||||
int AddScreen(ScreenInitProcPtr pfnInit, int argc, char **argv);
|
||||
int AddGPUScreen(ScreenInitProcPtr pfnInit, int argc, char **argv);
|
||||
|
||||
void RemoveGPUScreen(ScreenPtr pScreen);
|
||||
|
||||
void AttachUnboundGPU(ScreenPtr pScreen, ScreenPtr newScreen);
|
||||
void DetachUnboundGPU(ScreenPtr unbound);
|
||||
|
||||
void AttachOffloadGPU(ScreenPtr pScreen, ScreenPtr newScreen);
|
||||
void DetachOffloadGPU(ScreenPtr slave);
|
||||
|
||||
#endif /* _XSERVER_DIX_SCREENINT_PRIV_H */
|
||||
|
|
@ -31,7 +31,6 @@
|
|||
#include "dix/eventconvert.h"
|
||||
#include "dix/exevents_priv.h"
|
||||
#include "dix/input_priv.h"
|
||||
#include "mi/mi_priv.h"
|
||||
|
||||
#include "inputstr.h"
|
||||
#include "scrnintstr.h"
|
||||
|
|
@ -39,6 +38,7 @@
|
|||
#include "exglobals.h"
|
||||
#include "inpututils.h"
|
||||
#include "windowstr.h"
|
||||
#include "mi.h"
|
||||
|
||||
#define TOUCH_HISTORY_SIZE 100
|
||||
|
||||
|
|
|
|||
|
|
@ -103,7 +103,6 @@ Equipment Corporation.
|
|||
#include "dix/exevents_priv.h"
|
||||
#include "dix/input_priv.h"
|
||||
#include "dix/property_priv.h"
|
||||
#include "mi/mi_priv.h" /* miPaintWindow */
|
||||
#include "os/auth.h"
|
||||
#include "os/client_priv.h"
|
||||
#include "os/screensaver.h"
|
||||
|
|
@ -129,6 +128,7 @@ Equipment Corporation.
|
|||
#endif /* XINERAMA */
|
||||
#include "dixevents.h"
|
||||
#include "globals.h"
|
||||
#include "mi.h" /* miPaintWindow */
|
||||
#ifdef COMPOSITE
|
||||
#include "compint.h"
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -26,8 +26,6 @@
|
|||
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "mi/mi_priv.h"
|
||||
|
||||
#include "fb.h"
|
||||
#include "fboverlay.h"
|
||||
#include "shmint.h"
|
||||
|
|
|
|||
|
|
@ -40,8 +40,6 @@
|
|||
#include <GL/glxproto.h>
|
||||
#include "vndservervendor.h"
|
||||
|
||||
#include "dix/dix_priv.h"
|
||||
|
||||
ExtensionEntry *GlxExtensionEntry;
|
||||
int GlxErrorBase = 0;
|
||||
static CallbackListRec vndInitCallbackList;
|
||||
|
|
|
|||
|
|
@ -30,6 +30,7 @@
|
|||
|
||||
#include "mi/mipointer_priv.h"
|
||||
#include "os/client_priv.h"
|
||||
#include "os/osdep.h"
|
||||
|
||||
#include "ephyr.h"
|
||||
#include "inputstr.h"
|
||||
|
|
|
|||
|
|
@ -25,9 +25,7 @@
|
|||
|
||||
#include <dix-config.h>
|
||||
|
||||
#include "dix/dix_priv.h"
|
||||
#include "os/cmdline.h"
|
||||
#include "os/ddx_priv.h"
|
||||
#include "os/osdep.h"
|
||||
|
||||
#include "ephyr.h"
|
||||
#include "ephyrlog.h"
|
||||
|
|
|
|||
|
|
@ -23,15 +23,11 @@
|
|||
#include <dix-config.h>
|
||||
|
||||
#include "config/hotplug_priv.h"
|
||||
#include "dix/screenint_priv.h"
|
||||
#include "os/cmdline.h"
|
||||
#include "os/ddx_priv.h"
|
||||
|
||||
#include "kdrive.h"
|
||||
#include <mivalidate.h>
|
||||
#include <dixstruct.h>
|
||||
#include "privates.h"
|
||||
|
||||
#ifdef RANDR
|
||||
#include <randrstr.h>
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -41,7 +41,6 @@
|
|||
#include "dix/input_priv.h"
|
||||
#include "mi/mi_priv.h"
|
||||
#include "mi/mipointer_priv.h"
|
||||
#include "os/cmdline.h"
|
||||
|
||||
#include "xkbsrv.h"
|
||||
#include "XIstubs.h" /* even though we don't use stubs. cute, no? */
|
||||
|
|
@ -53,6 +52,10 @@
|
|||
#include "inpututils.h"
|
||||
#include "optionstr.h"
|
||||
|
||||
#if defined(CONFIG_UDEV) || defined(CONFIG_HAL)
|
||||
#include <hotplug.h>
|
||||
#endif
|
||||
|
||||
#define AtomFromName(x) MakeAtom(x, strlen(x), 1)
|
||||
|
||||
struct KdConfigDevice {
|
||||
|
|
|
|||
|
|
@ -29,16 +29,14 @@ from The Open Group.
|
|||
#include <dix-config.h>
|
||||
|
||||
#include <X11/X.h>
|
||||
#include "mi.h"
|
||||
#include <X11/Xproto.h>
|
||||
#include <X11/Xos.h>
|
||||
#include <X11/keysym.h>
|
||||
|
||||
#include "mi/mi_priv.h"
|
||||
|
||||
#include "scrnintstr.h"
|
||||
#include "inputstr.h"
|
||||
#include <X11/Xos.h>
|
||||
#include "mipointer.h"
|
||||
#include "xkbsrv.h"
|
||||
#include <X11/keysym.h>
|
||||
#include "xserver-properties.h"
|
||||
#include "exevents.h"
|
||||
#include "extinit.h"
|
||||
|
|
|
|||
|
|
@ -38,10 +38,7 @@ from The Open Group.
|
|||
|
||||
#include "dix/colormap_priv.h"
|
||||
#include "dix/dix_priv.h"
|
||||
#include "dix/screenint_priv.h"
|
||||
#include "mi/mipointer_priv.h"
|
||||
#include "os/cmdline.h"
|
||||
#include "os/ddx_priv.h"
|
||||
#include "os/osdep.h"
|
||||
|
||||
#include "scrnintstr.h"
|
||||
#include "servermd.h"
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@
|
|||
|
||||
#include <errno.h>
|
||||
|
||||
#include "os/ddx_priv.h"
|
||||
#include "os/osdep.h"
|
||||
|
||||
#include "xf86.h"
|
||||
#include "xf86Config.h"
|
||||
|
|
|
|||
|
|
@ -34,7 +34,6 @@
|
|||
#include <X11/extensions/XIproto.h>
|
||||
|
||||
#include "dix/input_priv.h"
|
||||
#include "mi/mipointer_priv.h"
|
||||
|
||||
#include "cursor.h"
|
||||
#include "mipointer.h"
|
||||
|
|
|
|||
|
|
@ -41,22 +41,20 @@
|
|||
#include <xorg-config.h>
|
||||
#endif
|
||||
|
||||
#include <string.h>
|
||||
#include <X11/X.h>
|
||||
#include <X11/Xproto.h>
|
||||
#include <X11/extensions/xf86dgaproto.h>
|
||||
|
||||
#include "dix/colormap_priv.h"
|
||||
#include "dix/dix_priv.h"
|
||||
#include "dix/eventconvert.h"
|
||||
#include "dix/exevents_priv.h"
|
||||
#include "mi/mi_priv.h"
|
||||
|
||||
#include "xf86.h"
|
||||
#include "xf86str.h"
|
||||
#include "xf86Priv.h"
|
||||
#include "dgaproc.h"
|
||||
#include "dgaproc_priv.h"
|
||||
#include <X11/extensions/xf86dgaproto.h>
|
||||
#include "colormapst.h"
|
||||
#include "pixmapstr.h"
|
||||
#include "inputstr.h"
|
||||
|
|
@ -68,6 +66,9 @@
|
|||
#include "exglobals.h"
|
||||
#include "eventstr.h"
|
||||
#include "xf86Extensions.h"
|
||||
|
||||
#include "mi.h"
|
||||
|
||||
#include "misc.h"
|
||||
#include "dixstruct.h"
|
||||
#include "dixevents.h"
|
||||
|
|
@ -78,6 +79,8 @@
|
|||
#include "dgaproc.h"
|
||||
#include "protocol-versions.h"
|
||||
|
||||
#include <string.h>
|
||||
|
||||
#define DGA_PROTOCOL_OLD_SUPPORT 1
|
||||
|
||||
static DevPrivateKeyRec DGAScreenKeyRec;
|
||||
|
|
|
|||
|
|
@ -59,17 +59,15 @@
|
|||
#include <X11/Xatom.h>
|
||||
#include <X11/extensions/XI.h>
|
||||
#include <X11/extensions/XIproto.h>
|
||||
#include <X11/keysym.h>
|
||||
|
||||
#include "dix/dix_priv.h"
|
||||
#include "dix/input_priv.h"
|
||||
#include "mi/mi_priv.h"
|
||||
|
||||
#include "misc.h"
|
||||
#include "xf86.h"
|
||||
#include "xf86Priv.h"
|
||||
#include "xf86_os_support.h"
|
||||
#include "xf86_OSlib.h"
|
||||
#include <X11/keysym.h>
|
||||
|
||||
#ifdef XFreeXDGA
|
||||
#include "dgaproc.h"
|
||||
|
|
@ -78,7 +76,9 @@
|
|||
|
||||
#include "inputstr.h"
|
||||
#include "xf86Xinput.h"
|
||||
#include "mi.h"
|
||||
#include "mipointer.h"
|
||||
|
||||
#include "xkbsrv.h"
|
||||
#include "xkbstr.h"
|
||||
|
||||
|
|
|
|||
|
|
@ -43,8 +43,8 @@
|
|||
|
||||
#include "dix/dix_priv.h"
|
||||
#include "dix/input_priv.h"
|
||||
#include "mi/mi_priv.h"
|
||||
|
||||
#include "mi.h"
|
||||
#include "os.h"
|
||||
#include "servermd.h"
|
||||
#include "pixmapstr.h"
|
||||
|
|
|
|||
|
|
@ -54,14 +54,13 @@
|
|||
#include "config/dbus-core.h"
|
||||
#include "config/hotplug_priv.h"
|
||||
#include "dix/input_priv.h"
|
||||
#include "dix/screenint_priv.h"
|
||||
#include "mi/mi_priv.h"
|
||||
#include "os/cmdline.h"
|
||||
#include "os/ddx_priv.h"
|
||||
#include "os/osdep.h"
|
||||
|
||||
#include "input.h"
|
||||
#include "servermd.h"
|
||||
#include "windowstr.h"
|
||||
#include "scrnintstr.h"
|
||||
#include "mi.h"
|
||||
#include "systemd-logind.h"
|
||||
|
||||
#include "loaderProcs.h"
|
||||
|
|
|
|||
|
|
@ -50,14 +50,12 @@
|
|||
#include <xorg-config.h>
|
||||
#endif
|
||||
|
||||
#include <string.h> /* InputClassMatches */
|
||||
#include <X11/Xfuncproto.h>
|
||||
#include <X11/Xmd.h>
|
||||
#include <X11/extensions/XI.h>
|
||||
#include <X11/extensions/XIproto.h>
|
||||
#include <X11/Xatom.h>
|
||||
|
||||
#include "dix/dix_priv.h"
|
||||
#include "dix/ptrveloc_priv.h"
|
||||
#include "dix/input_priv.h"
|
||||
|
||||
|
|
@ -71,12 +69,14 @@
|
|||
#include "extinit.h"
|
||||
#include "loaderProcs.h"
|
||||
#include "systemd-logind.h"
|
||||
|
||||
#include "exevents.h" /* AddInputDevice */
|
||||
#include "exglobals.h"
|
||||
#include "eventstr.h"
|
||||
#include "inpututils.h"
|
||||
#include "optionstr.h"
|
||||
|
||||
#include <string.h> /* InputClassMatches */
|
||||
#ifdef HAVE_FNMATCH_H
|
||||
#include <fnmatch.h>
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -36,11 +36,9 @@
|
|||
#include "misc.h"
|
||||
|
||||
#include "dix/colormap_priv.h"
|
||||
#include "mi/mi_priv.h"
|
||||
|
||||
#include "misc.h"
|
||||
#include "colormapst.h"
|
||||
#include "scrnintstr.h"
|
||||
|
||||
#include "resource.h"
|
||||
|
||||
#include "xf86.h"
|
||||
|
|
|
|||
|
|
@ -38,7 +38,6 @@
|
|||
#include <unistd.h>
|
||||
|
||||
#include "config/hotplug_priv.h"
|
||||
#include "dix/screenint_priv.h"
|
||||
|
||||
#include "os.h"
|
||||
#include "systemd-logind.h"
|
||||
|
|
|
|||
|
|
@ -27,7 +27,6 @@
|
|||
#include <X11/extensions/render.h>
|
||||
|
||||
#include "dix/input_priv.h"
|
||||
#include "dix/screenint_priv.h"
|
||||
|
||||
#include "xf86.h"
|
||||
#include "os.h"
|
||||
|
|
|
|||
|
|
@ -28,19 +28,16 @@
|
|||
#include <stddef.h>
|
||||
#include <string.h>
|
||||
#include <stdio.h>
|
||||
#include <X11/Xatom.h>
|
||||
#include <X11/extensions/render.h>
|
||||
#include <X11/extensions/dpmsconst.h>
|
||||
|
||||
#include "dix/dix_priv.h"
|
||||
#include "mi/mi_priv.h"
|
||||
|
||||
#include "mi.h"
|
||||
#include "xf86.h"
|
||||
#include "xf86DDC.h"
|
||||
#include "windowstr.h"
|
||||
#include "xf86Crtc.h"
|
||||
#include "xf86Modes.h"
|
||||
#include "xf86RandR12.h"
|
||||
#include "X11/extensions/render.h"
|
||||
#include "X11/extensions/dpmsconst.h"
|
||||
#include "X11/Xatom.h"
|
||||
|
||||
void
|
||||
xf86RotateCrtcRedisplay(xf86CrtcPtr crtc, PixmapPtr dst_pixmap,
|
||||
|
|
|
|||
|
|
@ -29,8 +29,6 @@
|
|||
|
||||
#include <X11/X.h>
|
||||
|
||||
#include "os/cmdline.h"
|
||||
|
||||
#include "compiler.h"
|
||||
#include "xf86.h"
|
||||
#include "xf86Priv.h"
|
||||
|
|
|
|||
|
|
@ -31,10 +31,9 @@
|
|||
#include <X11/X.h>
|
||||
#include <X11/Xmd.h>
|
||||
|
||||
#include "os/cmdline.h"
|
||||
|
||||
#include "compiler.h"
|
||||
#include "linux.h"
|
||||
|
||||
#include "xf86.h"
|
||||
#include "xf86Priv.h"
|
||||
#include "xf86_os_support.h"
|
||||
|
|
|
|||
|
|
@ -29,8 +29,6 @@
|
|||
#include <errno.h>
|
||||
#include <sys/stat.h>
|
||||
|
||||
#include "../../../../os/cmdline.h"
|
||||
|
||||
#include "xf86.h"
|
||||
#include "xf86Priv.h"
|
||||
#include "xf86_os_support.h"
|
||||
|
|
|
|||
|
|
@ -17,8 +17,6 @@ is" without express or implied warranty.
|
|||
#include <X11/Xdefs.h>
|
||||
#include <X11/Xproto.h>
|
||||
|
||||
#include "os/ddx_priv.h"
|
||||
|
||||
#include "screenint.h"
|
||||
#include "input.h"
|
||||
#include "misc.h"
|
||||
|
|
|
|||
|
|
@ -17,8 +17,6 @@ is" without express or implied warranty.
|
|||
#include <X11/Xdefs.h>
|
||||
#include <X11/Xproto.h>
|
||||
|
||||
#include "mi/mi_priv.h"
|
||||
|
||||
#include "screenint.h"
|
||||
#include "input.h"
|
||||
#include "misc.h"
|
||||
|
|
@ -27,6 +25,7 @@ is" without express or implied warranty.
|
|||
#include "servermd.h"
|
||||
#include "inputstr.h"
|
||||
#include "inpututils.h"
|
||||
#include "mi.h"
|
||||
|
||||
#include "Xnest.h"
|
||||
|
||||
|
|
|
|||
|
|
@ -20,9 +20,7 @@ is" without express or implied warranty.
|
|||
#include <X11/fonts/fontstruct.h>
|
||||
#include <X11/fonts/libxfont2.h>
|
||||
|
||||
#include "dix/screenint_priv.h"
|
||||
#include "mi/mi_priv.h"
|
||||
#include "os/ddx_priv.h"
|
||||
#include "os/osdep.h"
|
||||
|
||||
#include "screenint.h"
|
||||
#include "input.h"
|
||||
|
|
@ -30,6 +28,7 @@ is" without express or implied warranty.
|
|||
#include "scrnintstr.h"
|
||||
#include "windowstr.h"
|
||||
#include "servermd.h"
|
||||
#include "mi.h"
|
||||
#include "dixfontstr.h"
|
||||
#include "extinit_priv.h"
|
||||
#include "Xnest.h"
|
||||
|
|
|
|||
|
|
@ -17,8 +17,8 @@ is" without express or implied warranty.
|
|||
#include <X11/Xdefs.h>
|
||||
#include <X11/Xproto.h>
|
||||
|
||||
#include "mi/mi.h"
|
||||
#include "mi/mi_priv.h"
|
||||
#include "mi/mipointer_priv.h"
|
||||
|
||||
#include "scrnintstr.h"
|
||||
#include "dix.h"
|
||||
|
|
|
|||
|
|
@ -17,8 +17,6 @@ is" without express or implied warranty.
|
|||
#include <X11/Xdefs.h>
|
||||
#include <X11/Xproto.h>
|
||||
|
||||
#include "mi/mi_priv.h"
|
||||
|
||||
#include "gcstruct.h"
|
||||
#include "window.h"
|
||||
#include "windowstr.h"
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@
|
|||
#include <X11/X.h>
|
||||
#include <X11/Xproto.h>
|
||||
|
||||
#include "os/ddx_priv.h"
|
||||
#include "os/osdep.h"
|
||||
|
||||
#include "os.h"
|
||||
#include "servermd.h"
|
||||
|
|
|
|||
|
|
@ -45,16 +45,14 @@
|
|||
#include <X11/X.h>
|
||||
#include <X11/Xmd.h>
|
||||
#include <X11/Xproto.h>
|
||||
|
||||
#include "mi/mi_priv.h"
|
||||
#include "os/client_priv.h"
|
||||
|
||||
#include "misc.h"
|
||||
#include "windowstr.h"
|
||||
#include "pixmapstr.h"
|
||||
#include "inputstr.h"
|
||||
#include "inpututils.h"
|
||||
#include "eventstr.h"
|
||||
#include "mi.h"
|
||||
#include "scrnintstr.h"
|
||||
#include "mipointer.h"
|
||||
#include "os.h"
|
||||
|
|
|
|||
|
|
@ -38,8 +38,6 @@
|
|||
#include "darwinEvents.h"
|
||||
#include <Xplugin.h>
|
||||
|
||||
#include "mi/mipointer_priv.h"
|
||||
|
||||
#include "mi.h"
|
||||
#include "scrnintstr.h"
|
||||
#include "cursorstr.h"
|
||||
|
|
|
|||
|
|
@ -32,13 +32,13 @@
|
|||
#include "dix/dix_priv.h"
|
||||
#include "dix/exevents_priv.h"
|
||||
#include "dix/input_priv.h"
|
||||
#include "mi/mi_priv.h"
|
||||
#include "mi/mipointer_priv.h"
|
||||
|
||||
#include <inputstr.h>
|
||||
#include <xkbsrv.h>
|
||||
#include <xserver-properties.h>
|
||||
#include <inpututils.h>
|
||||
#include <mi.h>
|
||||
#include <mipointer.h>
|
||||
#include <mipointrst.h>
|
||||
#include <misc.h>
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@
|
|||
*/
|
||||
|
||||
#include <dix-config.h>
|
||||
|
||||
#include "dix/dix_priv.h"
|
||||
#include <float.h>
|
||||
#include <math.h>
|
||||
#include <sys/mman.h>
|
||||
|
|
@ -32,8 +32,6 @@
|
|||
#include <X11/X.h>
|
||||
#include <X11/Xatom.h>
|
||||
|
||||
#include "dix/dix_priv.h"
|
||||
|
||||
#include "compositeext.h"
|
||||
#include "compint.h"
|
||||
#include "inputstr.h"
|
||||
|
|
|
|||
|
|
@ -35,11 +35,7 @@
|
|||
#include <X11/Xatom.h>
|
||||
#include <X11/Xfuncproto.h>
|
||||
|
||||
#include "dix/dix_priv.h"
|
||||
#include "dix/screenint_priv.h"
|
||||
#include "os/cmdline.h"
|
||||
#include "os/client_priv.h"
|
||||
#include "os/ddx_priv.h"
|
||||
#include "os/fmt.h"
|
||||
#include "os/osdep.h"
|
||||
#include "os/xserver_poll.h"
|
||||
|
|
|
|||
|
|
@ -29,9 +29,6 @@
|
|||
#ifdef HAVE_XWIN_CONFIG_H
|
||||
#include <xwin-config.h>
|
||||
#endif
|
||||
|
||||
#include "mi/mi_priv.h"
|
||||
|
||||
#include "win.h"
|
||||
#include "dixstruct_priv.h"
|
||||
#include "inputstr.h"
|
||||
|
|
|
|||
|
|
@ -32,13 +32,9 @@ from The Open Group.
|
|||
#include <xwin-config.h>
|
||||
#endif
|
||||
|
||||
#include "win.h"
|
||||
|
||||
#include "dix/dix_priv.h"
|
||||
#include "dix/screenint_priv.h"
|
||||
#include "os/ddx_priv.h"
|
||||
#include "os/osdep.h"
|
||||
|
||||
#include "win.h"
|
||||
#include "winmsg.h"
|
||||
#include "winconfig.h"
|
||||
#include "winprefs.h"
|
||||
|
|
@ -63,15 +59,13 @@ typedef WINAPI HRESULT(*SHGETFOLDERPATHPROC) (HWND hwndOwner,
|
|||
DWORD dwFlags, LPTSTR pszPath);
|
||||
#endif
|
||||
|
||||
#include "dix/screenint_priv.h"
|
||||
#include "os/osdep.h"
|
||||
|
||||
#include "winmonitors.h"
|
||||
#include "nonsdk_extinit.h"
|
||||
#include "extinit_priv.h"
|
||||
#include "pseudoramiX/pseudoramiX.h"
|
||||
|
||||
#include "dix/dix_priv.h"
|
||||
|
||||
#include "glx_extinit.h"
|
||||
#ifdef XWIN_GLX_WINDOWS
|
||||
#include "glx/glwindows.h"
|
||||
|
|
|
|||
|
|
@ -31,9 +31,6 @@
|
|||
#ifdef HAVE_XWIN_CONFIG_H
|
||||
#include <xwin-config.h>
|
||||
#endif
|
||||
|
||||
#include "dix/dix_priv.h"
|
||||
|
||||
#include "win.h"
|
||||
#include "shellapi.h"
|
||||
|
||||
|
|
|
|||
|
|
@ -36,9 +36,6 @@
|
|||
#endif
|
||||
#include "win.h"
|
||||
#include "winmsg.h"
|
||||
|
||||
#include "mi/mipointer_priv.h"
|
||||
|
||||
#include <cursorstr.h>
|
||||
#include <mipointrst.h>
|
||||
#include <servermd.h>
|
||||
|
|
|
|||
|
|
@ -30,8 +30,6 @@
|
|||
#endif
|
||||
|
||||
#include <opaque.h> // for display
|
||||
#include "dix/dix_priv.h" // for display
|
||||
|
||||
#include "windisplay.h"
|
||||
#include "winmsg.h"
|
||||
|
||||
|
|
|
|||
|
|
@ -34,16 +34,11 @@
|
|||
#ifdef HAVE_XWIN_CONFIG_H
|
||||
#include <xwin-config.h>
|
||||
#endif
|
||||
|
||||
#include "mi/mi_priv.h"
|
||||
|
||||
#include "win.h"
|
||||
|
||||
#include "dix/dix_priv.h"
|
||||
|
||||
#include "winkeybd.h"
|
||||
#include "winconfig.h"
|
||||
#include "winmsg.h"
|
||||
|
||||
#include "xkbsrv.h"
|
||||
|
||||
/* C does not have a logical XOR operator, so we use a macro instead */
|
||||
|
|
|
|||
|
|
@ -35,9 +35,7 @@ from The Open Group.
|
|||
#include <sys/utsname.h>
|
||||
#endif
|
||||
|
||||
#include "os/cmdline.h"
|
||||
#include "os/osdep.h"
|
||||
#include "os/ddx_priv.h"
|
||||
|
||||
#include <../xfree86/common/xorgVersion.h>
|
||||
#include "win.h"
|
||||
|
|
|
|||
|
|
@ -38,8 +38,6 @@
|
|||
#include "winprefs.h"
|
||||
#include "winclipboard/winclipboard.h"
|
||||
|
||||
#include "dix/dix_priv.h"
|
||||
|
||||
/*
|
||||
* Initialize the tray icon
|
||||
*/
|
||||
|
|
|
|||
219
include/dix.h
219
include/dix.h
|
|
@ -130,15 +130,26 @@ typedef struct _WorkQueue *WorkQueuePtr;
|
|||
extern _X_EXPORT ClientPtr clients[MAXCLIENTS];
|
||||
extern _X_EXPORT ClientPtr serverClient;
|
||||
extern _X_EXPORT int currentMaxClients;
|
||||
extern _X_EXPORT char dispatchExceptionAtReset;
|
||||
extern _X_EXPORT int terminateDelay;
|
||||
extern _X_EXPORT Bool touchEmulatePointer;
|
||||
|
||||
typedef int HWEventQueueType;
|
||||
typedef HWEventQueueType *HWEventQueuePtr;
|
||||
|
||||
extern _X_EXPORT HWEventQueuePtr checkForInput[2];
|
||||
|
||||
static inline _X_NOTSAN Bool
|
||||
InputCheckPending(void)
|
||||
{
|
||||
return (*checkForInput[0] != *checkForInput[1]);
|
||||
}
|
||||
|
||||
typedef struct _TimeStamp {
|
||||
CARD32 months; /* really ~49.7 days */
|
||||
CARD32 milliseconds;
|
||||
} TimeStamp;
|
||||
|
||||
typedef int HWEventQueueType;
|
||||
typedef HWEventQueueType *HWEventQueuePtr;
|
||||
|
||||
/* dispatch.c */
|
||||
extern _X_EXPORT void SetInputCheck(HWEventQueuePtr /*c0 */ ,
|
||||
HWEventQueuePtr /*c1 */ );
|
||||
|
|
@ -160,6 +171,8 @@ extern _X_EXPORT void SendErrorToClient(ClientPtr /*client */ ,
|
|||
|
||||
extern _X_EXPORT void MarkClientException(ClientPtr /*client */ );
|
||||
|
||||
extern _X_HIDDEN Bool CreateConnectionBlock(void);
|
||||
|
||||
/* dixutils.c */
|
||||
|
||||
extern _X_EXPORT int dixLookupWindow(WindowPtr *result,
|
||||
|
|
@ -187,6 +200,12 @@ extern _X_EXPORT void BlockHandler(void *timeout);
|
|||
|
||||
extern _X_EXPORT void WakeupHandler(int result);
|
||||
|
||||
void
|
||||
EnableLimitedSchedulingLatency(void);
|
||||
|
||||
void
|
||||
DisableLimitedSchedulingLatency(void);
|
||||
|
||||
typedef void (*ServerBlockHandlerProcPtr) (void *blockData,
|
||||
void *timeout);
|
||||
|
||||
|
|
@ -260,8 +279,16 @@ InitAtoms(void);
|
|||
extern _X_EXPORT void
|
||||
SetVendorRelease(int release);
|
||||
|
||||
int
|
||||
dix_main(int argc, char *argv[], char *envp[]);
|
||||
|
||||
/* events.c */
|
||||
|
||||
extern void
|
||||
SetMaskForEvent(int /* deviceid */ ,
|
||||
Mask /* mask */ ,
|
||||
int /* event */ );
|
||||
|
||||
extern _X_EXPORT void
|
||||
ConfineToShape(DeviceIntPtr /* pDev */ ,
|
||||
RegionPtr /* shape */ ,
|
||||
|
|
@ -281,23 +308,63 @@ GetSpriteWindow(DeviceIntPtr pDev);
|
|||
extern _X_EXPORT void
|
||||
NoticeTime(const DeviceIntPtr dev,
|
||||
TimeStamp time);
|
||||
|
||||
extern _X_EXPORT void
|
||||
NoticeEventTime(InternalEvent *ev,
|
||||
DeviceIntPtr dev);
|
||||
|
||||
extern _X_EXPORT TimeStamp
|
||||
LastEventTime(int deviceid);
|
||||
|
||||
extern _X_EXPORT Bool
|
||||
LastEventTimeWasReset(int deviceid);
|
||||
|
||||
extern _X_EXPORT void
|
||||
LastEventTimeToggleResetFlag(int deviceid, Bool state);
|
||||
|
||||
extern _X_EXPORT void
|
||||
LastEventTimeToggleResetAll(Bool state);
|
||||
|
||||
extern void
|
||||
EnqueueEvent(InternalEvent * /* ev */ ,
|
||||
DeviceIntPtr /* device */ );
|
||||
extern void
|
||||
PlayReleasedEvents(void);
|
||||
|
||||
extern void
|
||||
ActivatePointerGrab(DeviceIntPtr /* mouse */ ,
|
||||
GrabPtr /* grab */ ,
|
||||
TimeStamp /* time */ ,
|
||||
Bool /* autoGrab */ );
|
||||
|
||||
extern void
|
||||
DeactivatePointerGrab(DeviceIntPtr /* mouse */ );
|
||||
|
||||
extern void
|
||||
ActivateKeyboardGrab(DeviceIntPtr /* keybd */ ,
|
||||
GrabPtr /* grab */ ,
|
||||
TimeStamp /* time */ ,
|
||||
Bool /* passive */ );
|
||||
|
||||
extern void
|
||||
DeactivateKeyboardGrab(DeviceIntPtr /* keybd */ );
|
||||
|
||||
extern BOOL
|
||||
ActivateFocusInGrab(DeviceIntPtr /* dev */ ,
|
||||
WindowPtr /* old */ ,
|
||||
WindowPtr /* win */ );
|
||||
|
||||
extern void
|
||||
AllowSome(ClientPtr /* client */ ,
|
||||
TimeStamp /* time */ ,
|
||||
DeviceIntPtr /* thisDev */ ,
|
||||
int /* newState */ );
|
||||
|
||||
extern void
|
||||
ReleaseActiveGrabs(ClientPtr client);
|
||||
|
||||
extern GrabPtr
|
||||
CheckPassiveGrabsOnWindow(WindowPtr /* pWin */ ,
|
||||
DeviceIntPtr /* device */ ,
|
||||
InternalEvent * /* event */ ,
|
||||
BOOL /* checkCore */ ,
|
||||
BOOL /* activate */ );
|
||||
|
||||
extern _X_EXPORT int
|
||||
DeliverEventsToWindow(DeviceIntPtr /* pWin */ ,
|
||||
WindowPtr /* pWin */ ,
|
||||
|
|
@ -311,19 +378,123 @@ DeliverRawEvent(RawDeviceEvent * /* ev */ ,
|
|||
DeviceIntPtr /* dev */
|
||||
);
|
||||
|
||||
extern int
|
||||
DeliverDeviceEvents(WindowPtr /* pWin */ ,
|
||||
InternalEvent * /* event */ ,
|
||||
GrabPtr /* grab */ ,
|
||||
WindowPtr /* stopAt */ ,
|
||||
DeviceIntPtr /* dev */ );
|
||||
|
||||
extern int
|
||||
DeliverOneGrabbedEvent(InternalEvent * /* event */ ,
|
||||
DeviceIntPtr /* dev */ ,
|
||||
enum InputLevel /* level */ );
|
||||
|
||||
extern void
|
||||
DeliverTouchEvents(DeviceIntPtr /* dev */ ,
|
||||
TouchPointInfoPtr /* ti */ ,
|
||||
InternalEvent * /* ev */ ,
|
||||
XID /* resource */ );
|
||||
|
||||
extern Bool
|
||||
DeliverGestureEventToOwner(DeviceIntPtr dev, GestureInfoPtr gi,
|
||||
InternalEvent *ev);
|
||||
|
||||
extern void
|
||||
InitializeSprite(DeviceIntPtr /* pDev */ ,
|
||||
WindowPtr /* pWin */ );
|
||||
extern void
|
||||
FreeSprite(DeviceIntPtr pDev);
|
||||
|
||||
extern void
|
||||
UpdateSpriteForScreen(DeviceIntPtr /* pDev */ ,
|
||||
ScreenPtr /* pScreen */ );
|
||||
|
||||
extern _X_EXPORT void
|
||||
WindowHasNewCursor(WindowPtr /* pWin */ );
|
||||
|
||||
extern Bool
|
||||
CheckDeviceGrabs(DeviceIntPtr /* device */ ,
|
||||
InternalEvent * /* event */ ,
|
||||
WindowPtr /* ancestor */ );
|
||||
|
||||
extern void
|
||||
DeliverFocusedEvent(DeviceIntPtr /* keybd */ ,
|
||||
InternalEvent * /* event */ ,
|
||||
WindowPtr /* window */ );
|
||||
|
||||
extern int
|
||||
DeliverGrabbedEvent(InternalEvent * /* event */ ,
|
||||
DeviceIntPtr /* thisDev */ ,
|
||||
Bool /* deactivateGrab */ );
|
||||
|
||||
extern void
|
||||
FreezeThisEventIfNeededForSyncGrab(DeviceIntPtr thisDev,
|
||||
InternalEvent *event);
|
||||
|
||||
extern void
|
||||
FixKeyState(DeviceEvent * /* event */ ,
|
||||
DeviceIntPtr /* keybd */ );
|
||||
|
||||
extern void
|
||||
RecalculateDeliverableEvents(WindowPtr /* pWin */ );
|
||||
|
||||
extern _X_EXPORT int
|
||||
OtherClientGone(void *value,
|
||||
XID id);
|
||||
|
||||
extern void
|
||||
DoFocusEvents(DeviceIntPtr /* dev */ ,
|
||||
WindowPtr /* fromWin */ ,
|
||||
WindowPtr /* toWin */ ,
|
||||
int /* mode */ );
|
||||
|
||||
extern int
|
||||
SetInputFocus(ClientPtr /* client */ ,
|
||||
DeviceIntPtr /* dev */ ,
|
||||
Window /* focusID */ ,
|
||||
CARD8 /* revertTo */ ,
|
||||
Time /* ctime */ ,
|
||||
Bool /* followOK */ );
|
||||
|
||||
extern int
|
||||
GrabDevice(ClientPtr /* client */ ,
|
||||
DeviceIntPtr /* dev */ ,
|
||||
unsigned /* this_mode */ ,
|
||||
unsigned /* other_mode */ ,
|
||||
Window /* grabWindow */ ,
|
||||
unsigned /* ownerEvents */ ,
|
||||
Time /* ctime */ ,
|
||||
GrabMask * /* mask */ ,
|
||||
int /* grabtype */ ,
|
||||
Cursor /* curs */ ,
|
||||
Window /* confineToWin */ ,
|
||||
CARD8 * /* status */ );
|
||||
|
||||
extern void
|
||||
InitEvents(void);
|
||||
|
||||
extern void
|
||||
CloseDownEvents(void);
|
||||
|
||||
extern void
|
||||
DeleteWindowFromAnyEvents(WindowPtr /* pWin */ ,
|
||||
Bool /* freeResources */ );
|
||||
|
||||
extern Mask
|
||||
EventMaskForClient(WindowPtr /* pWin */ ,
|
||||
ClientPtr /* client */ );
|
||||
|
||||
extern _X_EXPORT int
|
||||
DeliverEvents(WindowPtr /*pWin */ ,
|
||||
xEventPtr /*xE */ ,
|
||||
int /*count */ ,
|
||||
WindowPtr /*otherParent */ );
|
||||
|
||||
extern Bool
|
||||
CheckMotion(DeviceEvent * /* ev */ ,
|
||||
DeviceIntPtr /* pDev */ );
|
||||
|
||||
extern _X_EXPORT void
|
||||
WriteEventsToClient(ClientPtr /*pClient */ ,
|
||||
int /*count */ ,
|
||||
|
|
@ -341,12 +512,21 @@ TryClientEvents(ClientPtr /*client */ ,
|
|||
extern _X_EXPORT void
|
||||
WindowsRestructured(void);
|
||||
|
||||
extern int
|
||||
SetClientPointer(ClientPtr /* client */ ,
|
||||
DeviceIntPtr /* device */ );
|
||||
|
||||
extern _X_EXPORT DeviceIntPtr
|
||||
PickPointer(ClientPtr /* client */ );
|
||||
|
||||
extern _X_EXPORT DeviceIntPtr
|
||||
PickKeyboard(ClientPtr /* client */ );
|
||||
|
||||
extern Bool
|
||||
IsInterferingGrab(ClientPtr /* client */ ,
|
||||
DeviceIntPtr /* dev */ ,
|
||||
xEvent * /* events */ );
|
||||
|
||||
#ifdef RANDR
|
||||
extern _X_EXPORT void
|
||||
ScreenRestructured(ScreenPtr pScreen);
|
||||
|
|
@ -392,18 +572,37 @@ typedef struct {
|
|||
|
||||
extern _X_EXPORT CallbackListPtr RootWindowFinalizeCallback;
|
||||
|
||||
extern int
|
||||
XItoCoreType(int xi_type);
|
||||
extern Bool
|
||||
DevHasCursor(DeviceIntPtr pDev);
|
||||
extern _X_EXPORT Bool
|
||||
IsPointerDevice(DeviceIntPtr dev);
|
||||
|
||||
extern _X_EXPORT Bool
|
||||
IsKeyboardDevice(DeviceIntPtr dev);
|
||||
extern Bool
|
||||
IsPointerEvent(InternalEvent *event);
|
||||
extern Bool
|
||||
IsTouchEvent(InternalEvent *event);
|
||||
Bool
|
||||
IsGestureEvent(InternalEvent *event);
|
||||
Bool
|
||||
IsGestureBeginEvent(InternalEvent *event);
|
||||
Bool
|
||||
IsGestureEndEvent(InternalEvent *event);
|
||||
|
||||
extern _X_EXPORT Bool
|
||||
IsMaster(DeviceIntPtr dev);
|
||||
|
||||
extern _X_EXPORT Bool
|
||||
IsFloating(DeviceIntPtr dev);
|
||||
|
||||
extern _X_HIDDEN void
|
||||
CopyKeyClass(DeviceIntPtr device, DeviceIntPtr master);
|
||||
extern _X_HIDDEN int
|
||||
CorePointerProc(DeviceIntPtr dev, int what);
|
||||
extern _X_HIDDEN int
|
||||
CoreKeyboardProc(DeviceIntPtr dev, int what);
|
||||
|
||||
extern _X_EXPORT void *lastGLContext;
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -35,6 +35,27 @@ from The Open Group.
|
|||
|
||||
// needed by libglx and libglamor (server modules)
|
||||
extern _X_EXPORT Bool enableIndirectGLX;
|
||||
extern _X_EXPORT volatile char isItTimeToYield;
|
||||
extern _X_EXPORT volatile char dispatchException;
|
||||
|
||||
/* bit values for dispatchException */
|
||||
#define DE_RESET 1
|
||||
#define DE_TERMINATE 2
|
||||
#define DE_PRIORITYCHANGE 4 /* set when a client's priority changes */
|
||||
|
||||
extern _X_EXPORT int ScreenSaverBlanking;
|
||||
extern _X_EXPORT int ScreenSaverAllowExposures;
|
||||
extern _X_EXPORT int defaultScreenSaverBlanking;
|
||||
extern _X_EXPORT int defaultScreenSaverAllowExposures;
|
||||
extern _X_EXPORT const char *display;
|
||||
extern _X_EXPORT int displayfd;
|
||||
extern _X_EXPORT Bool explicit_display;
|
||||
|
||||
extern _X_EXPORT Bool disableBackingStore;
|
||||
extern _X_EXPORT Bool enableBackingStore;
|
||||
extern _X_EXPORT Bool RunFromSigStopParent;
|
||||
|
||||
extern _X_EXPORT Bool whiteRoot;
|
||||
extern _X_EXPORT Bool bgNoneRoot;
|
||||
|
||||
#endif /* OPAQUE_H */
|
||||
|
|
|
|||
96
include/os.h
96
include/os.h
|
|
@ -84,6 +84,14 @@ typedef struct _NewClientRec *NewClientPtr;
|
|||
#include <stdio.h>
|
||||
#include <stdarg.h>
|
||||
|
||||
#ifdef DDXBEFORERESET
|
||||
extern void ddxBeforeReset(void);
|
||||
#endif
|
||||
|
||||
extern _X_EXPORT Bool WaitForSomething(Bool clients_are_ready);
|
||||
|
||||
extern _X_EXPORT int ReadRequestFromClient(ClientPtr /*client */ );
|
||||
|
||||
extern _X_EXPORT int ReadFdFromClient(ClientPtr client);
|
||||
|
||||
extern _X_EXPORT void SetCriticalOutputPending(void);
|
||||
|
|
@ -135,6 +143,14 @@ extern _X_EXPORT void TimerFree(OsTimerPtr /* pTimer */ );
|
|||
|
||||
extern _X_EXPORT void GiveUp(int /*sig */ );
|
||||
|
||||
extern _X_EXPORT void UseMsg(void);
|
||||
|
||||
extern _X_EXPORT void ProcessCommandLine(int /*argc */ , char * /*argv */ []);
|
||||
|
||||
extern _X_EXPORT int set_font_authorizations(char **authorizations,
|
||||
int *authlen,
|
||||
void *client);
|
||||
|
||||
/*
|
||||
* This function malloc(3)s buffer, terminating the server if there is not
|
||||
* enough memory.
|
||||
|
|
@ -242,9 +258,85 @@ OsAbort(void)
|
|||
extern _X_EXPORT Bool
|
||||
PrivsElevated(void);
|
||||
|
||||
extern _X_EXPORT void
|
||||
CheckUserParameters(int argc, char **argv, char **envp);
|
||||
extern _X_EXPORT void
|
||||
CheckUserAuthorization(void);
|
||||
|
||||
extern _X_EXPORT int
|
||||
AddHost(ClientPtr /*client */ ,
|
||||
int /*family */ ,
|
||||
unsigned /*length */ ,
|
||||
const void * /*pAddr */ );
|
||||
|
||||
extern _X_EXPORT Bool
|
||||
ForEachHostInFamily(int family,
|
||||
Bool (*func)(
|
||||
unsigned char *addr,
|
||||
short len,
|
||||
void *closure),
|
||||
void *closure);
|
||||
|
||||
extern _X_EXPORT int
|
||||
RemoveHost(ClientPtr client,
|
||||
int family,
|
||||
unsigned length,
|
||||
void *pAddr);
|
||||
|
||||
extern _X_EXPORT int
|
||||
GetHosts(void ** /*data */ ,
|
||||
int * /*pnHosts */ ,
|
||||
int * /*pLen */ ,
|
||||
BOOL * /*pEnabled */ );
|
||||
|
||||
typedef struct sockaddr *sockaddrPtr;
|
||||
|
||||
extern _X_EXPORT int
|
||||
InvalidHost(sockaddrPtr /*saddr */ , int /*len */ , ClientPtr client);
|
||||
|
||||
#define LCC_UID_SET (1 << 0)
|
||||
#define LCC_GID_SET (1 << 1)
|
||||
#define LCC_PID_SET (1 << 2)
|
||||
#define LCC_ZID_SET (1 << 3)
|
||||
|
||||
typedef struct {
|
||||
int fieldsSet; /* Bit mask of fields set */
|
||||
int euid; /* Effective uid */
|
||||
int egid; /* Primary effective group id */
|
||||
int nSuppGids; /* Number of supplementary group ids */
|
||||
int *pSuppGids; /* Array of supplementary group ids */
|
||||
int pid; /* Process id */
|
||||
int zoneid; /* Only set on Solaris 10 & later */
|
||||
} LocalClientCredRec;
|
||||
|
||||
extern _X_EXPORT int
|
||||
GetLocalClientCreds(ClientPtr, LocalClientCredRec **);
|
||||
|
||||
extern _X_EXPORT void
|
||||
FreeLocalClientCreds(LocalClientCredRec *);
|
||||
|
||||
extern _X_EXPORT int
|
||||
ChangeAccessControl(ClientPtr /*client */ , int /*fEnabled */ );
|
||||
|
||||
extern _X_EXPORT int
|
||||
GetClientFd(ClientPtr);
|
||||
|
||||
extern _X_EXPORT Bool
|
||||
ClientIsLocal(ClientPtr client);
|
||||
|
||||
extern _X_EXPORT int
|
||||
ddxProcessArgument(int /*argc */ , char * /*argv */ [], int /*i */ );
|
||||
|
||||
#define CHECK_FOR_REQUIRED_ARGUMENTS(num) \
|
||||
do if (((i + num) >= argc) || (!argv[i + num])) { \
|
||||
UseMsg(); \
|
||||
FatalError("Required argument to %s not specified\n", argv[i]); \
|
||||
} while (0)
|
||||
|
||||
|
||||
extern _X_EXPORT void
|
||||
ddxUseMsg(void);
|
||||
|
||||
/* stuff for ReplyCallback */
|
||||
extern _X_EXPORT CallbackListPtr ReplyCallback;
|
||||
typedef struct {
|
||||
|
|
@ -266,6 +358,10 @@ enum ExitCode {
|
|||
EXIT_ERR_DRIVERS = 3,
|
||||
};
|
||||
|
||||
extern _X_EXPORT void
|
||||
ddxGiveUp(enum ExitCode error);
|
||||
extern _X_EXPORT void
|
||||
ddxInputThreadInit(void);
|
||||
extern _X_EXPORT int
|
||||
TimeSinceLastInputEvent(void);
|
||||
|
||||
|
|
|
|||
|
|
@ -56,6 +56,22 @@ typedef struct _Screen *ScreenPtr;
|
|||
|
||||
extern _X_EXPORT void AttachOutputGPU(ScreenPtr pScreen, ScreenPtr newScreen);
|
||||
extern _X_EXPORT void DetachOutputGPU(ScreenPtr output);
|
||||
typedef Bool (*ScreenInitProcPtr)(ScreenPtr pScreen, int argc, char **argv);
|
||||
extern _X_EXPORT int AddScreen(ScreenInitProcPtr pfnInit, int argc, char **argv);
|
||||
extern _X_EXPORT int AddGPUScreen(ScreenInitProcPtr pfnInit, int argc, char **argv);
|
||||
|
||||
extern _X_EXPORT void RemoveGPUScreen(ScreenPtr pScreen);
|
||||
|
||||
extern _X_EXPORT void
|
||||
AttachUnboundGPU(ScreenPtr pScreen, ScreenPtr newScreen);
|
||||
extern _X_EXPORT void
|
||||
DetachUnboundGPU(ScreenPtr unbound);
|
||||
|
||||
extern _X_EXPORT void
|
||||
AttachOffloadGPU(ScreenPtr pScreen, ScreenPtr newScreen);
|
||||
|
||||
extern _X_EXPORT void
|
||||
DetachOffloadGPU(ScreenPtr slave);
|
||||
|
||||
typedef struct _ColormapRec *ColormapPtr;
|
||||
|
||||
|
|
|
|||
148
mi/mi.h
148
mi/mi.h
|
|
@ -67,6 +67,11 @@ typedef struct _miDash *miDashPtr;
|
|||
|
||||
/* miarc.c */
|
||||
|
||||
extern _X_EXPORT void miWideArc(DrawablePtr pDraw,
|
||||
GCPtr pGC,
|
||||
int narcs,
|
||||
xArc * parcs);
|
||||
|
||||
extern _X_EXPORT void miPolyArc(DrawablePtr /*pDraw */ ,
|
||||
GCPtr /*pGC */ ,
|
||||
int /*narcs */ ,
|
||||
|
|
@ -108,12 +113,71 @@ miDoCopy(DrawablePtr pSrcDrawable,
|
|||
int xOut,
|
||||
int yOut, miCopyProc copyProc, Pixel bitplane, void *closure);
|
||||
|
||||
/* micursor.c */
|
||||
|
||||
extern _X_EXPORT void miRecolorCursor(DeviceIntPtr /* pDev */ ,
|
||||
ScreenPtr /*pScr */ ,
|
||||
CursorPtr /*pCurs */ ,
|
||||
Bool /*displayed */
|
||||
);
|
||||
|
||||
/* midash.c */
|
||||
|
||||
extern _X_EXPORT void miStepDash(int /*dist */ ,
|
||||
int * /*pDashIndex */ ,
|
||||
unsigned char * /*pDash */ ,
|
||||
int /*numInDashList */ ,
|
||||
int * /*pDashOffset */
|
||||
);
|
||||
|
||||
/* mieq.c */
|
||||
|
||||
#ifndef INPUT_H
|
||||
typedef struct _DeviceRec *DevicePtr;
|
||||
#endif
|
||||
|
||||
extern _X_EXPORT Bool mieqInit(void
|
||||
);
|
||||
|
||||
extern _X_EXPORT void mieqFini(void);
|
||||
|
||||
extern _X_EXPORT void mieqEnqueue(DeviceIntPtr /*pDev */ ,
|
||||
InternalEvent * /*e */
|
||||
);
|
||||
|
||||
extern _X_EXPORT void mieqSwitchScreen(DeviceIntPtr /* pDev */ ,
|
||||
ScreenPtr /*pScreen */ ,
|
||||
Bool /*set_dequeue_screen */
|
||||
);
|
||||
|
||||
extern _X_EXPORT void mieqProcessDeviceEvent(DeviceIntPtr /* dev */ ,
|
||||
InternalEvent * /* event */ ,
|
||||
ScreenPtr /* screen */
|
||||
);
|
||||
|
||||
extern _X_EXPORT void mieqProcessInputEvents(void
|
||||
);
|
||||
|
||||
extern _X_EXPORT void mieqAddCallbackOnDrained(CallbackProcPtr callback,
|
||||
void *param);
|
||||
|
||||
extern _X_EXPORT void mieqRemoveCallbackOnDrained(CallbackProcPtr callback,
|
||||
void *param);
|
||||
|
||||
extern DeviceIntPtr CopyGetMasterEvent(DeviceIntPtr /* sdev */ ,
|
||||
InternalEvent * /* original */ ,
|
||||
InternalEvent * /* copy */
|
||||
);
|
||||
|
||||
/**
|
||||
* Custom input event handler. If you need to process input events in some
|
||||
* other way than the default path, register an input event handler for the
|
||||
* given internal event type.
|
||||
*/
|
||||
typedef void (*mieqHandler) (int screen, InternalEvent *event,
|
||||
DeviceIntPtr dev);
|
||||
void _X_EXPORT mieqSetHandler(int event, mieqHandler handler);
|
||||
|
||||
/* miexpose.c */
|
||||
|
||||
extern _X_EXPORT RegionPtr miHandleExposures(DrawablePtr /*pSrcDrawable */ ,
|
||||
|
|
@ -127,9 +191,20 @@ extern _X_EXPORT RegionPtr miHandleExposures(DrawablePtr /*pSrcDrawable */ ,
|
|||
int /*dsty */
|
||||
);
|
||||
|
||||
extern _X_EXPORT void miSendExposures(WindowPtr /*pWin */ ,
|
||||
RegionPtr /*pRgn */ ,
|
||||
int /*dx */ ,
|
||||
int /*dy */
|
||||
);
|
||||
|
||||
extern _X_EXPORT void miWindowExposures(WindowPtr /*pWin */ ,
|
||||
RegionPtr /*prgn */);
|
||||
|
||||
extern _X_EXPORT void miPaintWindow(WindowPtr /*pWin */ ,
|
||||
RegionPtr /*prgn */ ,
|
||||
int /*what */
|
||||
);
|
||||
|
||||
extern _X_EXPORT void miClearDrawable(DrawablePtr /*pDraw */ ,
|
||||
GCPtr /*pGC */
|
||||
);
|
||||
|
|
@ -235,6 +310,11 @@ extern _X_EXPORT void miPushPixels(GCPtr /*pGC */ ,
|
|||
);
|
||||
|
||||
/* miscrinit.c */
|
||||
|
||||
extern _X_EXPORT void
|
||||
miSourceValidate(DrawablePtr pDrawable, int x, int y, int w, int h,
|
||||
unsigned int subWindowMode);
|
||||
|
||||
extern _X_EXPORT Bool miModifyPixmapHeader(PixmapPtr pPixmap,
|
||||
int width,
|
||||
int height,
|
||||
|
|
@ -264,6 +344,18 @@ extern _X_EXPORT Bool miScreenInit(ScreenPtr pScreen,
|
|||
|
||||
/* mivaltree.c */
|
||||
|
||||
extern _X_EXPORT int miShapedWindowIn(RegionPtr /*universe */ ,
|
||||
RegionPtr /*bounding */ ,
|
||||
BoxPtr /*rect */ ,
|
||||
int /*x */ ,
|
||||
int /*y */
|
||||
);
|
||||
|
||||
extern _X_EXPORT int miValidateTree(WindowPtr /*pParent */ ,
|
||||
WindowPtr /*pChild */ ,
|
||||
VTKind /*kind */
|
||||
);
|
||||
|
||||
extern _X_EXPORT void miWideLine(DrawablePtr /*pDrawable */ ,
|
||||
GCPtr /*pGC */ ,
|
||||
int /*mode */ ,
|
||||
|
|
@ -284,6 +376,62 @@ extern _X_EXPORT void miPolylines(DrawablePtr pDrawable,
|
|||
int npt,
|
||||
DDXPointPtr pPts);
|
||||
|
||||
/* miwindow.c */
|
||||
|
||||
extern _X_EXPORT void miClearToBackground(WindowPtr /*pWin */ ,
|
||||
int /*x */ ,
|
||||
int /*y */ ,
|
||||
int /*w */ ,
|
||||
int /*h */ ,
|
||||
Bool /*generateExposures */
|
||||
);
|
||||
|
||||
extern _X_EXPORT void miMarkWindow(WindowPtr /*pWin */
|
||||
);
|
||||
|
||||
extern _X_EXPORT Bool miMarkOverlappedWindows(WindowPtr /*pWin */ ,
|
||||
WindowPtr /*pFirst */ ,
|
||||
WindowPtr * /*ppLayerWin */
|
||||
);
|
||||
|
||||
extern _X_EXPORT void miHandleValidateExposures(WindowPtr /*pWin */
|
||||
);
|
||||
|
||||
extern _X_EXPORT void miMoveWindow(WindowPtr /*pWin */ ,
|
||||
int /*x */ ,
|
||||
int /*y */ ,
|
||||
WindowPtr /*pNextSib */ ,
|
||||
VTKind /*kind */
|
||||
);
|
||||
|
||||
extern _X_EXPORT void miResizeWindow(WindowPtr /*pWin */ ,
|
||||
int /*x */ ,
|
||||
int /*y */ ,
|
||||
unsigned int /*w */ ,
|
||||
unsigned int /*h */ ,
|
||||
WindowPtr /*pSib */
|
||||
);
|
||||
|
||||
extern _X_EXPORT WindowPtr miGetLayerWindow(WindowPtr /*pWin */
|
||||
);
|
||||
|
||||
extern _X_EXPORT void miSetShape(WindowPtr /*pWin */ ,
|
||||
int /*kind */
|
||||
);
|
||||
|
||||
extern _X_EXPORT void miChangeBorderWidth(WindowPtr /*pWin */ ,
|
||||
unsigned int /*width */
|
||||
);
|
||||
|
||||
extern _X_EXPORT void miMarkUnrealizedWindow(WindowPtr /*pChild */ ,
|
||||
WindowPtr /*pWin */ ,
|
||||
Bool /*fromConfigure */
|
||||
);
|
||||
|
||||
extern _X_EXPORT WindowPtr miSpriteTrace(SpritePtr pSprite, int x, int y);
|
||||
|
||||
extern _X_EXPORT WindowPtr miXYToWindow(ScreenPtr pScreen, SpritePtr pSprite, int x, int y);
|
||||
|
||||
/* mizerarc.c */
|
||||
|
||||
extern _X_EXPORT void miZeroPolyArc(DrawablePtr /*pDraw */ ,
|
||||
|
|
|
|||
65
mi/mi_priv.h
65
mi/mi_priv.h
|
|
@ -5,71 +5,8 @@
|
|||
#ifndef _XSERVER_MI_PRIV_H
|
||||
#define _XSERVER_MI_PRIV_H
|
||||
|
||||
#include <X11/Xdefs.h>
|
||||
#include <X11/Xprotostr.h>
|
||||
|
||||
#include "dix/screenint_priv.h"
|
||||
#include "include/callback.h"
|
||||
#include "include/events.h"
|
||||
#include "include/gc.h"
|
||||
#include "include/pixmap.h"
|
||||
#include "include/regionstr.h"
|
||||
#include "include/screenint.h"
|
||||
#include "include/validate.h"
|
||||
#include "include/window.h"
|
||||
#include "mi/mi.h"
|
||||
|
||||
#define SetInstalledmiColormap(s,c) \
|
||||
(dixSetPrivate(&(s)->devPrivates, micmapScrPrivateKey, c))
|
||||
#include "screenint.h"
|
||||
|
||||
void miScreenClose(ScreenPtr pScreen);
|
||||
|
||||
void miWideArc(DrawablePtr pDraw, GCPtr pGC, int narcs, xArc * parcs);
|
||||
void miStepDash(int dist, int * pDashIndex, unsigned char * pDash,
|
||||
int numInDashList, int *pDashOffset);
|
||||
|
||||
Bool mieqInit(void);
|
||||
void mieqFini(void);
|
||||
void mieqEnqueue(DeviceIntPtr pDev, InternalEvent *e);
|
||||
void mieqSwitchScreen(DeviceIntPtr pDev, ScreenPtr pScreen, Bool set_dequeue_screen);
|
||||
void mieqProcessDeviceEvent(DeviceIntPtr dev, InternalEvent *event, ScreenPtr screen);
|
||||
void mieqProcessInputEvents(void);
|
||||
void mieqAddCallbackOnDrained(CallbackProcPtr callback, void *param);
|
||||
void mieqRemoveCallbackOnDrained(CallbackProcPtr callback, void *param);
|
||||
|
||||
/**
|
||||
* Custom input event handler. If you need to process input events in some
|
||||
* other way than the default path, register an input event handler for the
|
||||
* given internal event type.
|
||||
*/
|
||||
typedef void (*mieqHandler) (int screen, InternalEvent *event,
|
||||
DeviceIntPtr dev);
|
||||
void mieqSetHandler(int event, mieqHandler handler);
|
||||
|
||||
void miSendExposures(WindowPtr pWin, RegionPtr pRgn, int dx, int dy);
|
||||
|
||||
void miPaintWindow(WindowPtr pWin, RegionPtr prgn, int what);
|
||||
|
||||
void miSourceValidate(DrawablePtr pDrawable, int x, int y, int w, int h,
|
||||
unsigned int subWindowMode);
|
||||
int miShapedWindowIn(RegionPtr universe, RegionPtr bounding, BoxPtr rect,
|
||||
int x, int y);
|
||||
int miValidateTree(WindowPtr pParent, WindowPtr pChild, VTKind kind);
|
||||
|
||||
void miClearToBackground(WindowPtr pWin, int x, int y, int w, int h,
|
||||
Bool generateExposures);
|
||||
void miMarkWindow(WindowPtr pWin);
|
||||
Bool miMarkOverlappedWindows(WindowPtr pWin, WindowPtr pFirst,
|
||||
WindowPtr *ppLayerWin);
|
||||
void miHandleValidateExposures(WindowPtr pWin);
|
||||
void miMoveWindow(WindowPtr pWin, int x, int y, WindowPtr pNextSib, VTKind kind);
|
||||
void miResizeWindow(WindowPtr pWin, int x, int y, unsigned int w,
|
||||
unsigned int h, WindowPtr pSib);
|
||||
WindowPtr miGetLayerWindow(WindowPtr pWin);
|
||||
void miSetShape(WindowPtr pWin, int kind);
|
||||
void miChangeBorderWidth(WindowPtr pWin, unsigned int width);
|
||||
void miMarkUnrealizedWindow(WindowPtr pChild, WindowPtr pWin, Bool fromConfigure);
|
||||
WindowPtr miSpriteTrace(SpritePtr pSprite, int x, int y);
|
||||
WindowPtr miXYToWindow(ScreenPtr pScreen, SpritePtr pSprite, int x, int y);
|
||||
|
||||
#endif /* _XSERVER_MI_PRIV_H */
|
||||
|
|
|
|||
|
|
@ -51,17 +51,15 @@ SOFTWARE.
|
|||
#include <math.h>
|
||||
#include <X11/X.h>
|
||||
#include <X11/Xprotostr.h>
|
||||
#include <X11/Xfuncproto.h>
|
||||
|
||||
#include "mi/mi_priv.h"
|
||||
|
||||
#include "misc.h"
|
||||
#include "gcstruct.h"
|
||||
#include "scrnintstr.h"
|
||||
#include "pixmapstr.h"
|
||||
#include "windowstr.h"
|
||||
#include "mifpoly.h"
|
||||
#include "mi.h"
|
||||
#include "mifillarc.h"
|
||||
#include <X11/Xfuncproto.h>
|
||||
|
||||
#define EPSILON 0.000001
|
||||
#define ISEQUAL(a,b) (fabs((a) - (b)) <= EPSILON)
|
||||
|
|
|
|||
|
|
@ -33,9 +33,7 @@
|
|||
#include <X11/Xproto.h>
|
||||
|
||||
#include "dix/colormap_priv.h"
|
||||
#include "mi/mi_priv.h"
|
||||
#include "os/osdep.h"
|
||||
|
||||
#include "scrnintstr.h"
|
||||
#include "colormapst.h"
|
||||
#include "resource.h"
|
||||
|
|
|
|||
|
|
@ -6,6 +6,8 @@
|
|||
|
||||
#define GetInstalledmiColormap(s) \
|
||||
((ColormapPtr) dixLookupPrivate(&(s)->devPrivates, micmapScrPrivateKey))
|
||||
#define SetInstalledmiColormap(s,c) \
|
||||
(dixSetPrivate(&(s)->devPrivates, micmapScrPrivateKey, c))
|
||||
|
||||
extern _X_EXPORT DevPrivateKeyRec micmapScrPrivateKeyRec;
|
||||
|
||||
|
|
|
|||
|
|
@ -45,8 +45,6 @@ SOFTWARE.
|
|||
******************************************************************/
|
||||
#include <dix-config.h>
|
||||
|
||||
#include "mi/mi_priv.h"
|
||||
|
||||
#include "regionstr.h"
|
||||
#include "mistruct.h"
|
||||
|
||||
|
|
|
|||
|
|
@ -33,7 +33,6 @@ in this Software without prior written authorization from The Open Group.
|
|||
|
||||
#include <X11/X.h>
|
||||
|
||||
#include "dix/dix_priv.h"
|
||||
#include "dix/gc_priv.h"
|
||||
|
||||
#include "misc.h"
|
||||
|
|
@ -47,7 +46,9 @@ in this Software without prior written authorization from The Open Group.
|
|||
#include "mipointer.h"
|
||||
#include "misprite.h"
|
||||
#include "gcstruct.h"
|
||||
|
||||
#include "picturestr.h"
|
||||
|
||||
#include "inputstr.h"
|
||||
|
||||
/* per-screen private data */
|
||||
|
|
|
|||
|
|
@ -41,7 +41,6 @@ in this Software without prior written authorization from The Open Group.
|
|||
#include <X11/extensions/XIproto.h>
|
||||
#include <X11/extensions/geproto.h>
|
||||
|
||||
#include "mi/mi_priv.h"
|
||||
#include "mi/mipointer_priv.h"
|
||||
#include "os/screensaver.h"
|
||||
|
||||
|
|
@ -50,6 +49,7 @@ in this Software without prior written authorization from The Open Group.
|
|||
#include "pixmapstr.h"
|
||||
#include "inputstr.h"
|
||||
#include "inpututils.h"
|
||||
#include "mi.h"
|
||||
#include "mipointer.h"
|
||||
#include "scrnintstr.h"
|
||||
#include "extinit.h"
|
||||
|
|
@ -384,7 +384,7 @@ FixUpEventForMaster(DeviceIntPtr mdev, DeviceIntPtr sdev,
|
|||
* @param copy The event after being copied
|
||||
* @return The master device or NULL if the device is a floating slave.
|
||||
*/
|
||||
static DeviceIntPtr
|
||||
DeviceIntPtr
|
||||
CopyGetMasterEvent(DeviceIntPtr sdev,
|
||||
InternalEvent *original, InternalEvent *copy)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -74,12 +74,10 @@ Equipment Corporation.
|
|||
#include <dix-config.h>
|
||||
|
||||
#include <X11/X.h>
|
||||
#include <X11/Xmd.h>
|
||||
#include <X11/Xproto.h>
|
||||
#include <X11/Xprotostr.h>
|
||||
|
||||
#include "dix/dix_priv.h"
|
||||
#include "mi/mi_priv.h"
|
||||
|
||||
#include "misc.h"
|
||||
#include "regionstr.h"
|
||||
|
|
@ -88,7 +86,11 @@ Equipment Corporation.
|
|||
#include "windowstr.h"
|
||||
#include "pixmap.h"
|
||||
#include "input.h"
|
||||
|
||||
#include "dixstruct.h"
|
||||
#include "mi.h"
|
||||
#include <X11/Xmd.h>
|
||||
|
||||
#include "globals.h"
|
||||
|
||||
#ifdef XINERAMA
|
||||
|
|
|
|||
|
|
@ -3,13 +3,11 @@
|
|||
|
||||
#include <X11/X.h>
|
||||
|
||||
#include "mi/mi_priv.h"
|
||||
|
||||
|
||||
#include "scrnintstr.h"
|
||||
#include <X11/extensions/shapeproto.h>
|
||||
#include "validate.h"
|
||||
#include "windowstr.h"
|
||||
#include "mi.h"
|
||||
#include "gcstruct.h"
|
||||
#include "regionstr.h"
|
||||
#include "privates.h"
|
||||
|
|
|
|||
|
|
@ -54,12 +54,12 @@ in this Software without prior written authorization from The Open Group.
|
|||
|
||||
#include "dix/dix_priv.h"
|
||||
#include "dix/input_priv.h"
|
||||
#include "mi/mi_priv.h"
|
||||
#include "mi/mipointer_priv.h"
|
||||
|
||||
#include "misc.h"
|
||||
#include "windowstr.h"
|
||||
#include "pixmapstr.h"
|
||||
#include "mi.h"
|
||||
#include "scrnintstr.h"
|
||||
#include "mipointrst.h"
|
||||
#include "cursorstr.h"
|
||||
|
|
@ -115,10 +115,6 @@ static void miPointerMoveNoEvent(DeviceIntPtr pDev, ScreenPtr pScreen, int x,
|
|||
|
||||
static InternalEvent *mipointermove_events; /* for WarpPointer MotionNotifies */
|
||||
|
||||
static void
|
||||
miRecolorCursor(DeviceIntPtr pDev, ScreenPtr pScr,
|
||||
CursorPtr pCurs, Bool displayed);
|
||||
|
||||
Bool
|
||||
miPointerInitialize(ScreenPtr pScreen,
|
||||
miPointerSpriteFuncPtr spriteFuncs,
|
||||
|
|
@ -299,7 +295,7 @@ miPointerSetCursorPosition(DeviceIntPtr pDev, ScreenPtr pScreen,
|
|||
return TRUE;
|
||||
}
|
||||
|
||||
static void
|
||||
void
|
||||
miRecolorCursor(DeviceIntPtr pDev, ScreenPtr pScr,
|
||||
CursorPtr pCurs, Bool displayed)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -77,6 +77,12 @@ extern _X_EXPORT Bool miDCInitialize(ScreenPtr /*pScreen */ ,
|
|||
miPointerScreenFuncPtr /*screenFuncs */
|
||||
);
|
||||
|
||||
extern _X_EXPORT void miPointerWarpCursor(DeviceIntPtr /*pDev */ ,
|
||||
ScreenPtr /*pScreen */ ,
|
||||
int /*x */ ,
|
||||
int /*y */
|
||||
);
|
||||
|
||||
extern _X_EXPORT ScreenPtr
|
||||
miPointerGetScreen(DeviceIntPtr pDev);
|
||||
|
||||
|
|
|
|||
|
|
@ -7,11 +7,8 @@
|
|||
|
||||
#include <X11/Xdefs.h>
|
||||
|
||||
#include "dix/screenint_priv.h"
|
||||
#include "include/input.h"
|
||||
#include "mi/mipointer.h"
|
||||
|
||||
void miPointerWarpCursor(DeviceIntPtr pDev, ScreenPtr pScreen, int x, int y);
|
||||
void miPointerSetScreen(DeviceIntPtr pDev, int screen_num, int x, int y);
|
||||
void miPointerUpdateSprite(DeviceIntPtr pDev);
|
||||
|
||||
|
|
|
|||
|
|
@ -91,12 +91,10 @@ Equipment Corporation.
|
|||
#include <dix-config.h>
|
||||
|
||||
#include <X11/X.h>
|
||||
|
||||
#include "mi/mi_priv.h"
|
||||
|
||||
#include "scrnintstr.h"
|
||||
#include "validate.h"
|
||||
#include "windowstr.h"
|
||||
#include "mi.h"
|
||||
#include "regionstr.h"
|
||||
#include "mivalidate.h"
|
||||
#include "globals.h"
|
||||
|
|
|
|||
|
|
@ -63,13 +63,11 @@ SOFTWARE.
|
|||
#undef _XOPEN_SOURCE
|
||||
#endif
|
||||
#include <X11/X.h>
|
||||
|
||||
#include "mi/mi_priv.h"
|
||||
|
||||
#include "windowstr.h"
|
||||
#include "gcstruct.h"
|
||||
#include "regionstr.h"
|
||||
#include "miwideline.h"
|
||||
#include "mi.h"
|
||||
|
||||
typedef struct {
|
||||
int count; /* number of spans */
|
||||
|
|
|
|||
|
|
@ -50,10 +50,10 @@ SOFTWARE.
|
|||
#include <X11/extensions/shapeconst.h>
|
||||
|
||||
#include "dix/input_priv.h"
|
||||
#include "mi/mi_priv.h"
|
||||
|
||||
#include "regionstr.h"
|
||||
#include "region.h"
|
||||
#include "mi.h"
|
||||
#include "windowstr.h"
|
||||
#include "scrnintstr.h"
|
||||
#include "pixmapstr.h"
|
||||
|
|
|
|||
|
|
@ -37,12 +37,10 @@ Author: Bob Scheifler, MIT X Consortium
|
|||
#include <math.h>
|
||||
#include <X11/X.h>
|
||||
#include <X11/Xprotostr.h>
|
||||
|
||||
#include "mi/mi_priv.h"
|
||||
|
||||
#include "regionstr.h"
|
||||
#include "gcstruct.h"
|
||||
#include "pixmapstr.h"
|
||||
#include "mi.h"
|
||||
#include "mizerarc.h"
|
||||
|
||||
#define FULLCIRCLE (360 * 64)
|
||||
|
|
|
|||
|
|
@ -37,8 +37,8 @@
|
|||
#include <string.h>
|
||||
|
||||
#include "dix/colormap_priv.h"
|
||||
#include "mi/mi_priv.h"
|
||||
|
||||
#include "mi.h"
|
||||
#include "scrnintstr.h"
|
||||
#include "gcstruct.h"
|
||||
#include "pixmapstr.h"
|
||||
|
|
|
|||
|
|
@ -92,13 +92,11 @@ Equipment Corporation.
|
|||
#include <dix-config.h>
|
||||
|
||||
#include <stddef.h> /* For NULL */
|
||||
#include <X11/X.h>
|
||||
|
||||
#include "mi/mi_priv.h"
|
||||
|
||||
#include <X11/X.h>
|
||||
#include "scrnintstr.h"
|
||||
#include "validate.h"
|
||||
#include "windowstr.h"
|
||||
#include "mi.h"
|
||||
#include "regionstr.h"
|
||||
#include "mivalidate.h"
|
||||
|
||||
|
|
|
|||
|
|
@ -35,12 +35,9 @@
|
|||
#include <limits.h> /* For CHAR_BIT */
|
||||
#include <assert.h>
|
||||
#include <X11/Xatom.h>
|
||||
|
||||
#include "mi/mi_priv.h"
|
||||
#include "dix_priv.h"
|
||||
|
||||
#ifdef __APPLE__
|
||||
#include <Xplugin.h>
|
||||
#include "mi.h"
|
||||
#include "pixmapstr.h"
|
||||
#include "windowstr.h"
|
||||
//#include <X11/extensions/applewm.h>
|
||||
|
|
|
|||
|
|
@ -54,12 +54,12 @@ SOFTWARE.
|
|||
|
||||
#include <dix-config.h>
|
||||
|
||||
#include <errno.h>
|
||||
#include <stdio.h>
|
||||
#ifdef WIN32
|
||||
#include <X11/Xwinsock.h>
|
||||
#endif
|
||||
#include <X11/Xos.h> /* for strings, fcntl, time */
|
||||
#include <errno.h>
|
||||
#include <stdio.h>
|
||||
#include <X11/X.h>
|
||||
|
||||
#include "dix/dix_priv.h"
|
||||
|
|
@ -70,7 +70,7 @@ SOFTWARE.
|
|||
#include "misc.h"
|
||||
#include "osdep.h"
|
||||
#include "dixstruct_priv.h"
|
||||
#include "globals.h"
|
||||
#include "opaque.h"
|
||||
#ifdef DPMSExtension
|
||||
#include "dpmsproc.h"
|
||||
#endif
|
||||
|
|
|
|||
28
os/auth.h
28
os/auth.h
|
|
@ -26,28 +26,11 @@ typedef int (*AuthRemCFunc) (AuthRemCArgs);
|
|||
#define AuthRstCArgs void
|
||||
typedef int (*AuthRstCFunc) (AuthRstCArgs);
|
||||
|
||||
int set_font_authorizations(char **authorizations,
|
||||
int *authlen,
|
||||
void *client);
|
||||
|
||||
#define LCC_UID_SET (1 << 0)
|
||||
#define LCC_GID_SET (1 << 1)
|
||||
#define LCC_PID_SET (1 << 2)
|
||||
#define LCC_ZID_SET (1 << 3)
|
||||
|
||||
typedef struct {
|
||||
int fieldsSet; /* Bit mask of fields set */
|
||||
int euid; /* Effective uid */
|
||||
int egid; /* Primary effective group id */
|
||||
int nSuppGids; /* Number of supplementary group ids */
|
||||
int *pSuppGids; /* Array of supplementary group ids */
|
||||
int pid; /* Process id */
|
||||
int zoneid; /* Only set on Solaris 10 & later */
|
||||
} LocalClientCredRec;
|
||||
|
||||
int GetLocalClientCreds(ClientPtr, LocalClientCredRec **);
|
||||
void FreeLocalClientCreds(LocalClientCredRec *);
|
||||
|
||||
void EnableLocalAccess(void);
|
||||
void DisableLocalAccess(void);
|
||||
|
||||
|
|
@ -87,17 +70,8 @@ XID GenerateAuthorization(unsigned int name_length,
|
|||
|
||||
void RegisterAuthorizations(void);
|
||||
|
||||
void CheckUserAuthorization(void);
|
||||
|
||||
typedef struct sockaddr *sockaddrPtr;
|
||||
|
||||
int AddHost(ClientPtr client, int family, unsigned length, const void *pAddr);
|
||||
Bool ForEachHostInFamily(int family,
|
||||
Bool (*func)(unsigned char *addr, short len, void *closure),
|
||||
void *closure);
|
||||
int RemoveHost(ClientPtr client, int family, unsigned length, void *pAddr);
|
||||
int GetHosts(void **data, int *pnHosts, int *pLen, BOOL *pEnabled);
|
||||
int InvalidHost(sockaddrPtr saddr, int len, ClientPtr client);
|
||||
void AddLocalHosts(void);
|
||||
void ResetHosts(const char *display);
|
||||
|
||||
|
|
@ -107,8 +81,6 @@ void DefineSelf(int fd);
|
|||
/* check whether given addr belongs to ourself */
|
||||
void AugmentSelf(void *from, int len);
|
||||
|
||||
int ChangeAccessControl(ClientPtr client, int fEnabled);
|
||||
|
||||
void AccessUsingXdmcp(void);
|
||||
|
||||
extern Bool defeatAccessControl;
|
||||
|
|
|
|||
|
|
@ -34,7 +34,6 @@ pid_t GetClientPid(struct _Client *client);
|
|||
const char *GetClientCmdName(struct _Client *client);
|
||||
const char *GetClientCmdArgs(struct _Client *client);
|
||||
|
||||
Bool ClientIsLocal(struct _Client *client);
|
||||
XID AuthorizationIDOfClient(struct _Client *client);
|
||||
const char *ClientAuthorized(struct _Client *client,
|
||||
unsigned int proto_n,
|
||||
|
|
@ -43,7 +42,6 @@ const char *ClientAuthorized(struct _Client *client,
|
|||
char *auth_string);
|
||||
Bool AddClientOnOpenFD(int fd);
|
||||
void ListenOnOpenFD(int fd, int noxauth);
|
||||
int ReadRequestFromClient(struct _Client *client);
|
||||
int WriteFdToClient(struct _Client *client, int fd, Bool do_close);
|
||||
Bool InsertFakeRequest(struct _Client *client, char *data, int count);
|
||||
void FlushAllOutput(void);
|
||||
|
|
|
|||
20
os/cmdline.h
20
os/cmdline.h
|
|
@ -1,20 +0,0 @@
|
|||
/* SPDX-License-Identifier: MIT OR X11
|
||||
*
|
||||
* Copyright © 2024 Enrico Weigelt, metux IT consult <info@metux.net>
|
||||
*/
|
||||
#ifndef _XSERVER_OS_CMDLINE_H
|
||||
#define _XSERVER_OS_CMDLINE_H
|
||||
|
||||
#include "include/os.h"
|
||||
|
||||
#define CHECK_FOR_REQUIRED_ARGUMENTS(num) \
|
||||
do if (((i + num) >= argc) || (!argv[i + num])) { \
|
||||
UseMsg(); \
|
||||
FatalError("Required argument to %s not specified\n", argv[i]); \
|
||||
} while (0)
|
||||
|
||||
void UseMsg(void);
|
||||
void ProcessCommandLine(int argc, char * argv[]);
|
||||
void CheckUserParameters(int argc, char **argv, char **envp);
|
||||
|
||||
#endif /* _XSERVER_OS_CMELINE_H */
|
||||
|
|
@ -103,6 +103,7 @@ SOFTWARE.
|
|||
#include "os/osdep.h"
|
||||
|
||||
#include "misc.h" /* for typedef of pointer */
|
||||
#include "opaque.h"
|
||||
#include "dixstruct_priv.h"
|
||||
#include "globals.h"
|
||||
#include "xace.h"
|
||||
|
|
|
|||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Reference in a new issue