include: move private definitions out of exevents.h

Public server module API shouldn't be clobbered with private definitions,
thus move them out to private header.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1289>
This commit is contained in:
Enrico Weigelt, metux IT consult 2024-02-12 18:57:22 +01:00 committed by Marge Bot
parent 33350ef8ff
commit eff7ccc11c
39 changed files with 247 additions and 249 deletions

View File

@ -38,6 +38,7 @@
#include <X11/extensions/XIproto.h> #include <X11/extensions/XIproto.h>
#include "dix/dix_priv.h" #include "dix/dix_priv.h"
#include "dix/exevents_priv.h"
#include "os/osdep.h" #include "os/osdep.h"
#include "misc.h" #include "misc.h"
@ -55,7 +56,6 @@
#include "exglobals.h" #include "exglobals.h"
#include "mipointer.h" #include "mipointer.h"
#include "xserver-properties.h" #include "xserver-properties.h"
#include "exevents.h"
#include "eventstr.h" #include "eventstr.h"
#include "inpututils.h" #include "inpututils.h"
#include "extinit_priv.h" #include "extinit_priv.h"

View File

@ -54,14 +54,14 @@ SOFTWARE.
#include <dix-config.h> #include <dix-config.h>
#endif #endif
#include "inputstr.h" /* DeviceIntPtr */
#include <X11/extensions/XI.h> #include <X11/extensions/XI.h>
#include <X11/extensions/XIproto.h> /* control constants */ #include <X11/extensions/XIproto.h> /* control constants */
#include "dix/exevents_priv.h"
#include "inputstr.h" /* DeviceIntPtr */
#include "XIstubs.h" #include "XIstubs.h"
#include "exglobals.h" #include "exglobals.h"
#include "exevents.h"
#include "chgdctl.h" #include "chgdctl.h"
/*********************************************************************** /***********************************************************************

View File

@ -54,10 +54,12 @@ SOFTWARE.
#include <dix-config.h> #include <dix-config.h>
#endif #endif
#include "inputstr.h" /* DeviceIntPtr */
#include <X11/extensions/XI.h> #include <X11/extensions/XI.h>
#include <X11/extensions/XIproto.h> #include <X11/extensions/XIproto.h>
#include "exevents.h"
#include "dix/exevents_priv.h"
#include "inputstr.h" /* DeviceIntPtr */
#include "exglobals.h" #include "exglobals.h"
#include "chgkmap.h" #include "chgkmap.h"

View File

@ -58,6 +58,7 @@ SOFTWARE.
#include <X11/extensions/XIproto.h> #include <X11/extensions/XIproto.h>
#include "dix/dix_priv.h" #include "dix/dix_priv.h"
#include "dix/exevents_priv.h"
#include "inputstr.h" /* DeviceIntPtr */ #include "inputstr.h" /* DeviceIntPtr */
#include "windowstr.h" #include "windowstr.h"

View File

@ -84,20 +84,20 @@ SOFTWARE.
#include <X11/X.h> #include <X11/X.h>
#include <X11/Xproto.h> #include <X11/Xproto.h>
#include <X11/extensions/geproto.h>
#include <X11/extensions/XI.h> #include <X11/extensions/XI.h>
#include <X11/extensions/XIproto.h> #include <X11/extensions/XIproto.h>
#include <X11/extensions/XI2proto.h> #include <X11/extensions/XI2proto.h>
#include <X11/extensions/geproto.h>
#include <X11/extensions/XKBproto.h> #include <X11/extensions/XKBproto.h>
#include "dix/dix_priv.h" #include "dix/dix_priv.h"
#include "dix/eventconvert.h" #include "dix/eventconvert.h"
#include "dix/exevents_priv.h"
#include "inputstr.h" #include "inputstr.h"
#include "windowstr.h" #include "windowstr.h"
#include "miscstruct.h" #include "miscstruct.h"
#include "region.h" #include "region.h"
#include "exevents.h"
#include "extnsionst.h" #include "extnsionst.h"
#include "exglobals.h" #include "exglobals.h"
#include "eventstr.h" #include "eventstr.h"

View File

@ -61,13 +61,13 @@ SOFTWARE.
#include <X11/extensions/geproto.h> #include <X11/extensions/geproto.h>
#include "dix/dix_priv.h" #include "dix/dix_priv.h"
#include "dix/exevents_priv.h"
#include "inputstr.h" #include "inputstr.h"
#include "gcstruct.h" /* pointer for extnsionst.h */ #include "gcstruct.h" /* pointer for extnsionst.h */
#include "extnsionst.h" /* extension entry */ #include "extnsionst.h" /* extension entry */
#include "geext.h" /* extension interfaces for ge */ #include "geext.h" /* extension interfaces for ge */
#include "dixevents.h" #include "dixevents.h"
#include "exevents.h"
#include "extinit_priv.h" #include "extinit_priv.h"
#include "exglobals.h" #include "exglobals.h"
#include "swaprep.h" #include "swaprep.h"

View File

@ -54,14 +54,15 @@ SOFTWARE.
#include <dix-config.h> #include <dix-config.h>
#endif #endif
#include "inputstr.h" /* DeviceIntPtr */
#include "windowstr.h" /* window structure */
#include <X11/extensions/XI.h> #include <X11/extensions/XI.h>
#include <X11/extensions/XIproto.h> #include <X11/extensions/XIproto.h>
#include "exevents.h"
#include "dix/exevents_priv.h"
#include "inputstr.h" /* DeviceIntPtr */
#include "windowstr.h" /* window structure */
#include "exglobals.h" #include "exglobals.h"
#include "xace.h" #include "xace.h"
#include "grabdev.h" #include "grabdev.h"
#include "grabdevb.h" #include "grabdevb.h"

View File

@ -54,14 +54,15 @@ SOFTWARE.
#include <dix-config.h> #include <dix-config.h>
#endif #endif
#include "inputstr.h" /* DeviceIntPtr */
#include "windowstr.h" /* window structure */
#include <X11/extensions/XI.h> #include <X11/extensions/XI.h>
#include <X11/extensions/XIproto.h> #include <X11/extensions/XIproto.h>
#include "exevents.h"
#include "dix/exevents_priv.h"
#include "inputstr.h" /* DeviceIntPtr */
#include "windowstr.h" /* window structure */
#include "exglobals.h" #include "exglobals.h"
#include "xace.h" #include "xace.h"
#include "grabdev.h" #include "grabdev.h"
#include "grabdevk.h" #include "grabdevk.h"

View File

@ -54,12 +54,13 @@ SOFTWARE.
#include <dix-config.h> #include <dix-config.h>
#endif #endif
#include "inputstr.h" /* DeviceIntPtr */
#include <X11/extensions/XI.h> #include <X11/extensions/XI.h>
#include <X11/extensions/XIproto.h> #include <X11/extensions/XIproto.h>
#include "exevents.h"
#include "exglobals.h"
#include "dix/exevents_priv.h"
#include "inputstr.h" /* DeviceIntPtr */
#include "exglobals.h"
#include "gtmotion.h" #include "gtmotion.h"
/*********************************************************************** /***********************************************************************

View File

@ -36,15 +36,16 @@ from The Open Group.
#include <dix-config.h> #include <dix-config.h>
#endif #endif
#include "inputstr.h" /* DeviceIntPtr */
#include "windowstr.h" /* window structure */
#include <X11/extensions/XI.h> #include <X11/extensions/XI.h>
#include <X11/extensions/XIproto.h> #include <X11/extensions/XIproto.h>
#include "exevents.h"
#include "dix/exevents_priv.h"
#include "inputstr.h" /* DeviceIntPtr */
#include "windowstr.h" /* window structure */
#include "exglobals.h" #include "exglobals.h"
#include "xkbsrv.h" #include "xkbsrv.h"
#include "xkbstr.h" #include "xkbstr.h"
#include "queryst.h" #include "queryst.h"
/*********************************************************************** /***********************************************************************

View File

@ -59,12 +59,11 @@ SOFTWARE.
#include <X11/extensions/XIproto.h> #include <X11/extensions/XIproto.h>
#include "dix/dix_priv.h" #include "dix/dix_priv.h"
#include "dix/exevents_priv.h"
#include "inputstr.h" /* DeviceIntPtr */ #include "inputstr.h" /* DeviceIntPtr */
#include "windowstr.h" /* window structure */ #include "windowstr.h" /* window structure */
#include "exevents.h"
#include "exglobals.h" #include "exglobals.h"
#include "grabdev.h" #include "grabdev.h"
#include "selectev.h" #include "selectev.h"

View File

@ -54,14 +54,15 @@ SOFTWARE.
#include <dix-config.h> #include <dix-config.h>
#endif #endif
#include <X11/extensions/XI.h>
#include <X11/extensions/XIproto.h>
#include "dix/exevents_priv.h"
#include "inputstr.h" /* DeviceIntPtr */ #include "inputstr.h" /* DeviceIntPtr */
#include "windowstr.h" /* Window */ #include "windowstr.h" /* Window */
#include "extnsionst.h" /* EventSwapPtr */ #include "extnsionst.h" /* EventSwapPtr */
#include <X11/extensions/XI.h>
#include <X11/extensions/XIproto.h>
#include "exevents.h"
#include "exglobals.h" #include "exglobals.h"
#include "grabdev.h" #include "grabdev.h"
#include "sendexev.h" #include "sendexev.h"

View File

@ -37,13 +37,13 @@
#include <X11/extensions/XI2proto.h> #include <X11/extensions/XI2proto.h>
#include "dix/dix_priv.h" #include "dix/dix_priv.h"
#include "dix/exevents_priv.h"
#include "inputstr.h" /* DeviceIntPtr */ #include "inputstr.h" /* DeviceIntPtr */
#include "windowstr.h" /* window structure */ #include "windowstr.h" /* window structure */
#include "mi.h" #include "mi.h"
#include "eventstr.h" #include "eventstr.h"
#include "exglobals.h" /* BadDevice */ #include "exglobals.h" /* BadDevice */
#include "exevents.h"
#include "xiallowev.h" #include "xiallowev.h"
int _X_COLD int _X_COLD

View File

@ -41,12 +41,12 @@
#include <X11/extensions/geproto.h> #include <X11/extensions/geproto.h>
#include "dix/dix_priv.h" #include "dix/dix_priv.h"
#include "dix/exevents_priv.h"
#include "inputstr.h" /* DeviceIntPtr */ #include "inputstr.h" /* DeviceIntPtr */
#include "windowstr.h" /* window structure */ #include "windowstr.h" /* window structure */
#include "scrnintstr.h" /* screen structure */ #include "scrnintstr.h" /* screen structure */
#include "extnsionst.h" #include "extnsionst.h"
#include "exevents.h"
#include "exglobals.h" #include "exglobals.h"
#include "geext.h" #include "geext.h"
#include "xace.h" #include "xace.h"

View File

@ -37,11 +37,11 @@
#include <X11/extensions/XI2proto.h> #include <X11/extensions/XI2proto.h>
#include "dix/dix_priv.h" #include "dix/dix_priv.h"
#include "dix/exevents_priv.h"
#include "inputstr.h" /* DeviceIntPtr */ #include "inputstr.h" /* DeviceIntPtr */
#include "windowstr.h" /* window structure */ #include "windowstr.h" /* window structure */
#include "exglobals.h" /* BadDevice */ #include "exglobals.h" /* BadDevice */
#include "exevents.h"
#include "xigrabdev.h" #include "xigrabdev.h"
#include "inpututils.h" #include "inpututils.h"

View File

@ -37,12 +37,12 @@
#include <X11/extensions/XI2proto.h> #include <X11/extensions/XI2proto.h>
#include "dix/dix_priv.h" #include "dix/dix_priv.h"
#include "dix/exevents_priv.h"
#include "inputstr.h" /* DeviceIntPtr */ #include "inputstr.h" /* DeviceIntPtr */
#include "windowstr.h" /* window structure */ #include "windowstr.h" /* window structure */
#include "swaprep.h" #include "swaprep.h"
#include "exglobals.h" /* BadDevice */ #include "exglobals.h" /* BadDevice */
#include "exevents.h"
#include "xipassivegrab.h" #include "xipassivegrab.h"
#include "dixgrabs.h" #include "dixgrabs.h"
#include "misc.h" #include "misc.h"

View File

@ -29,16 +29,17 @@
#include <dix-config.h> #include <dix-config.h>
#endif #endif
#include "dix.h"
#include "inputstr.h"
#include <X11/extensions/XI.h>
#include <X11/Xatom.h> #include <X11/Xatom.h>
#include <X11/extensions/XI.h>
#include <X11/extensions/XIproto.h> #include <X11/extensions/XIproto.h>
#include <X11/extensions/XI2proto.h> #include <X11/extensions/XI2proto.h>
#include "exglobals.h"
#include "exevents.h"
#include "swaprep.h"
#include "dix/exevents_priv.h"
#include "dix.h"
#include "inputstr.h"
#include "exglobals.h"
#include "swaprep.h"
#include "xiproperty.h" #include "xiproperty.h"
#include "xserver-properties.h" #include "xserver-properties.h"

View File

@ -32,20 +32,20 @@
#include <dix-config.h> #include <dix-config.h>
#endif #endif
#include "inputstr.h"
#include <X11/X.h> #include <X11/X.h>
#include <X11/Xatom.h> #include <X11/Xatom.h>
#include <X11/extensions/XI2proto.h> #include <X11/extensions/XI2proto.h>
#include "dix/exevents_priv.h"
#include "inputstr.h"
#include "xkbstr.h" #include "xkbstr.h"
#include "xkbsrv.h" #include "xkbsrv.h"
#include "xserver-properties.h" #include "xserver-properties.h"
#include "exevents.h"
#include "xace.h" #include "xace.h"
#include "inpututils.h" #include "inpututils.h"
#include "exglobals.h" #include "exglobals.h"
#include "privates.h" #include "privates.h"
#include "xiquerydevice.h" #include "xiquerydevice.h"
static Bool ShouldSkipDevice(ClientPtr client, int deviceid, DeviceIntPtr d); static Bool ShouldSkipDevice(ClientPtr client, int deviceid, DeviceIntPtr d);

View File

@ -40,11 +40,11 @@
#include "dix/dix_priv.h" #include "dix/dix_priv.h"
#include "dix/eventconvert.h" #include "dix/eventconvert.h"
#include "dix/exevents_priv.h"
#include "inputstr.h" /* DeviceIntPtr */ #include "inputstr.h" /* DeviceIntPtr */
#include "windowstr.h" /* window structure */ #include "windowstr.h" /* window structure */
#include "extnsionst.h" #include "extnsionst.h"
#include "exevents.h"
#include "exglobals.h" #include "exglobals.h"
#include "scrnintstr.h" #include "scrnintstr.h"
#include "xkbsrv.h" #include "xkbsrv.h"

View File

@ -39,8 +39,9 @@
#include <X11/X.h> #include <X11/X.h>
#include <X11/extensions/XI2proto.h> #include <X11/extensions/XI2proto.h>
#include "dix/exevents_priv.h"
#include "exglobals.h" #include "exglobals.h"
#include "exevents.h"
#include "xiqueryversion.h" #include "xiqueryversion.h"
#include "misc.h" #include "misc.h"

View File

@ -30,11 +30,11 @@
#include <X11/extensions/XI2proto.h> #include <X11/extensions/XI2proto.h>
#include "dix/dix_priv.h" #include "dix/dix_priv.h"
#include "dix/exevents_priv.h"
#include "dixstruct.h" #include "dixstruct.h"
#include "windowstr.h" #include "windowstr.h"
#include "exglobals.h" #include "exglobals.h"
#include "exevents.h"
#include "inpututils.h" #include "inpututils.h"
#include "xiselectev.h" #include "xiselectev.h"

View File

@ -58,6 +58,7 @@ SOFTWARE.
#include <X11/extensions/XIproto.h> #include <X11/extensions/XIproto.h>
#include "dix/dix_priv.h" #include "dix/dix_priv.h"
#include "dix/exevents_priv.h"
#include "dix/ptrveloc_priv.h" #include "dix/ptrveloc_priv.h"
#include "xkb/xkbsrv_priv.h" #include "xkb/xkbsrv_priv.h"
@ -79,7 +80,6 @@ SOFTWARE.
#include "eventstr.h" #include "eventstr.h"
#include "dixgrabs.h" #include "dixgrabs.h"
#include "exglobals.h" #include "exglobals.h"
#include "exevents.h"
#include "xiquerydevice.h" /* for SizeDeviceClasses */ #include "xiquerydevice.h" /* for SizeDeviceClasses */
#include "xiproperty.h" #include "xiproperty.h"
#include "enterleave.h" /* for EnterWindow() */ #include "enterleave.h" /* for EnterWindow() */

View File

@ -41,12 +41,12 @@
#include "dix/dix_priv.h" #include "dix/dix_priv.h"
#include "dix/eventconvert.h" #include "dix/eventconvert.h"
#include "dix/exevents_priv.h"
#include "dix.h" #include "dix.h"
#include "inputstr.h" #include "inputstr.h"
#include "misc.h" #include "misc.h"
#include "eventstr.h" #include "eventstr.h"
#include "exevents.h"
#include "exglobals.h" #include "exglobals.h"
#include "inpututils.h" #include "inpututils.h"
#include "xiquerydevice.h" #include "xiquerydevice.h"

View File

@ -116,6 +116,7 @@ Equipment Corporation.
#include "dix/dix_priv.h" #include "dix/dix_priv.h"
#include "dix/eventconvert.h" #include "dix/eventconvert.h"
#include "dix/exevents_priv.h"
#include "xkb/xkbsrv_priv.h" #include "xkb/xkbsrv_priv.h"
#include "misc.h" #include "misc.h"
@ -134,7 +135,6 @@ Equipment Corporation.
#include "xace.h" #include "xace.h"
#include "probes.h" #include "probes.h"
#include "exglobals.h" #include "exglobals.h"
#include "exevents.h"
#include "extnsionst.h" #include "extnsionst.h"
#include "dixevents.h" #include "dixevents.h"
#include "dixgrabs.h" #include "dixgrabs.h"

158
dix/exevents_priv.h Normal file
View File

@ -0,0 +1,158 @@
/* SPDX-License-Identifier: MIT OR X11
*
* Copyright © 1996 Thomas E. Dickey <dickey@clark.net>
* Copyright © 2024 Enrico Weigelt, metux IT consult <info@metux.net>
*/
#ifndef _XSERVER_EXEVENTS_PRIV_H
#define _XSERVER_EXEVENTS_PRIV_H
#include <X11/extensions/XIproto.h>
#include "exevents.h"
/**
* Attached to the devPrivates of each client. Specifies the version number as
* supported by the client.
*/
typedef struct _XIClientRec {
int major_version;
int minor_version;
} XIClientRec, *XIClientPtr;
typedef struct _GrabParameters {
int grabtype; /* CORE, etc. */
unsigned int ownerEvents;
unsigned int this_device_mode;
unsigned int other_devices_mode;
Window grabWindow;
Window confineTo;
Cursor cursor;
unsigned int modifiers;
} GrabParameters;
int UpdateDeviceState(DeviceIntPtr device, DeviceEvent *xE);
void ProcessOtherEvent(InternalEvent *ev, DeviceIntPtr other);
int CheckGrabValues(ClientPtr client, GrabParameters *param);
int GrabButton(ClientPtr client,
DeviceIntPtr dev,
DeviceIntPtr modifier_device,
int button,
GrabParameters *param,
enum InputLevel grabtype,
GrabMask *eventMask);
int GrabKey(ClientPtr client,
DeviceIntPtr dev,
DeviceIntPtr modifier_device,
int key,
GrabParameters *param,
enum InputLevel grabtype,
GrabMask *eventMask);
int GrabWindow(ClientPtr client,
DeviceIntPtr dev,
int type,
GrabParameters *param,
GrabMask *eventMask);
int GrabTouchOrGesture(ClientPtr client,
DeviceIntPtr dev,
DeviceIntPtr mod_dev,
int type,
GrabParameters *param,
GrabMask *eventMask);
int SelectForWindow(DeviceIntPtr dev,
WindowPtr pWin,
ClientPtr client,
Mask mask,
Mask exclusivemasks);
int AddExtensionClient(WindowPtr pWin,
ClientPtr client,
Mask mask,
int mskidx);
void RecalculateDeviceDeliverableEvents(WindowPtr pWin);
int InputClientGone(WindowPtr pWin, XID id);
void WindowGone(WindowPtr win);
int SendEvent(ClientPtr client,
DeviceIntPtr d,
Window dest,
Bool propagate,
xEvent *ev,
Mask mask ,
int count);
int SetButtonMapping(ClientPtr client,
DeviceIntPtr dev,
int nElts,
BYTE *map);
int ChangeKeyMapping(ClientPtr client,
DeviceIntPtr dev,
unsigned len,
int type,
KeyCode firstKeyCode,
CARD8 keyCodes,
CARD8 keySymsPerKeyCode,
KeySym *map);
void DeleteWindowFromAnyExtEvents(WindowPtr pWin, Bool freeResources);
int MaybeSendDeviceMotionNotifyHint(deviceKeyButtonPointer *pEvents, Mask mask);
void CheckDeviceGrabAndHintWindow(WindowPtr pWin,
int type,
deviceKeyButtonPointer *xE,
GrabPtr grab,
ClientPtr client,
Mask deliveryMask);
void MaybeStopDeviceHint(DeviceIntPtr dev, ClientPtr client);
int DeviceEventSuppressForWindow(WindowPtr pWin,
ClientPtr client,
Mask mask,
int maskndx);
void SendEventToAllWindows(DeviceIntPtr dev, Mask mask, xEvent *ev, int count);
void TouchRejected(DeviceIntPtr sourcedev,
TouchPointInfoPtr ti,
XID resource,
TouchOwnershipEvent *ev);
_X_HIDDEN void XI2EventSwap(xGenericEvent *from, xGenericEvent *to);
/* For an event such as MappingNotify which affects client interpretation
* of input events sent by device dev, should we notify the client, or
* would it merely be irrelevant and confusing? */
int XIShouldNotify(ClientPtr client,
DeviceIntPtr dev);
void XISendDeviceChangedEvent(DeviceIntPtr device,
DeviceChangedEvent *dce);
int XISetEventMask(DeviceIntPtr dev,
WindowPtr win,
ClientPtr client,
unsigned int len,
unsigned char *mask);
int XICheckInvalidMaskBits(ClientPtr client,
unsigned char *mask,
int len);
void XTestDeviceSendEvents(DeviceIntPtr dev,
int type,
int detail,
int flags,
const ValuatorMask *mask);
#endif /* _XSERVER_EXEVENTS_PRIV_H */

View File

@ -50,19 +50,19 @@ SOFTWARE.
#endif #endif
#include <X11/X.h> #include <X11/X.h>
#include "misc.h"
#include <X11/Xproto.h> #include <X11/Xproto.h>
#include <X11/extensions/XI2.h> #include <X11/extensions/XI2.h>
#include "dix/dix_priv.h" #include "dix/dix_priv.h"
#include "dix/exevents_priv.h"
#include "os/auth.h" #include "os/auth.h"
#include "misc.h"
#include "windowstr.h" #include "windowstr.h"
#include "inputstr.h" #include "inputstr.h"
#include "cursorstr.h" #include "cursorstr.h"
#include "dixgrabs.h" #include "dixgrabs.h"
#include "xace.h" #include "xace.h"
#include "exevents.h"
#include "exglobals.h" #include "exglobals.h"
#include "inpututils.h" #include "inpututils.h"
#include "client.h" #include "client.h"

View File

@ -27,7 +27,8 @@
#include "dix-config.h" #include "dix-config.h"
#endif #endif
#include "exevents.h" #include "dix/exevents_priv.h"
#include "exglobals.h" #include "exglobals.h"
#include "misc.h" #include "misc.h"
#include "input.h" #include "input.h"

View File

@ -30,13 +30,12 @@
#include "dix/dix_priv.h" #include "dix/dix_priv.h"
#include "dix/eventconvert.h" #include "dix/eventconvert.h"
#include "dix/exevents_priv.h"
#include "inputstr.h" #include "inputstr.h"
#include "scrnintstr.h" #include "scrnintstr.h"
#include "dixgrabs.h" #include "dixgrabs.h"
#include "eventstr.h" #include "eventstr.h"
#include "exevents.h"
#include "exglobals.h" #include "exglobals.h"
#include "inpututils.h" #include "inpututils.h"
#include "windowstr.h" #include "windowstr.h"

View File

@ -101,6 +101,7 @@ Equipment Corporation.
#endif #endif
#include "dix/dix_priv.h" #include "dix/dix_priv.h"
#include "dix/exevents_priv.h"
#include "os/auth.h" #include "os/auth.h"
#include "misc.h" #include "misc.h"
@ -131,10 +132,8 @@ Equipment Corporation.
#endif #endif
#include "selection.h" #include "selection.h"
#include "inpututils.h" #include "inpututils.h"
#include "privates.h" #include "privates.h"
#include "xace.h" #include "xace.h"
#include "exevents.h"
#include <X11/Xatom.h> /* must come after server includes */ #include <X11/Xatom.h> /* must come after server includes */

View File

@ -48,6 +48,7 @@
#include "dix/dix_priv.h" #include "dix/dix_priv.h"
#include "dix/eventconvert.h" #include "dix/eventconvert.h"
#include "dix/exevents_priv.h"
#include "xf86.h" #include "xf86.h"
#include "xf86str.h" #include "xf86str.h"
@ -63,7 +64,6 @@
#include "xkbsrv.h" #include "xkbsrv.h"
#include "xf86Xinput.h" #include "xf86Xinput.h"
#include "exglobals.h" #include "exglobals.h"
#include "exevents.h"
#include "eventstr.h" #include "eventstr.h"
#include "xf86Extensions.h" #include "xf86Extensions.h"
#include "mi.h" #include "mi.h"

View File

@ -30,9 +30,9 @@
#include <sys/mman.h> #include <sys/mman.h>
#include "dix/dix_priv.h" #include "dix/dix_priv.h"
#include "dix/exevents_priv.h"
#include <inputstr.h> #include <inputstr.h>
#include <exevents.h>
#include <xkbsrv.h> #include <xkbsrv.h>
#include <xserver-properties.h> #include <xserver-properties.h>
#include <inpututils.h> #include <inpututils.h>

View File

@ -134,182 +134,4 @@ extern _X_EXPORT int XIPropToFloat(XIPropertyValuePtr val,
* End of driver interface * * End of driver interface *
****************************************************************************/ ****************************************************************************/
/**
* Attached to the devPrivates of each client. Specifies the version number as
* supported by the client.
*/
typedef struct _XIClientRec {
int major_version;
int minor_version;
} XIClientRec, *XIClientPtr;
typedef struct _GrabParameters {
int grabtype; /* CORE, etc. */
unsigned int ownerEvents;
unsigned int this_device_mode;
unsigned int other_devices_mode;
Window grabWindow;
Window confineTo;
Cursor cursor;
unsigned int modifiers;
} GrabParameters;
extern int
UpdateDeviceState(DeviceIntPtr /* device */ ,
DeviceEvent * /* xE */ );
extern void
ProcessOtherEvent(InternalEvent * /* ev */ ,
DeviceIntPtr /* other */ );
extern int
CheckGrabValues(ClientPtr /* client */ ,
GrabParameters * /* param */ );
extern int
GrabButton(ClientPtr /* client */ ,
DeviceIntPtr /* dev */ ,
DeviceIntPtr /* modifier_device */ ,
int /* button */ ,
GrabParameters * /* param */ ,
enum InputLevel /* grabtype */ ,
GrabMask * /* eventMask */ );
extern int
GrabKey(ClientPtr /* client */ ,
DeviceIntPtr /* dev */ ,
DeviceIntPtr /* modifier_device */ ,
int /* key */ ,
GrabParameters * /* param */ ,
enum InputLevel /* grabtype */ ,
GrabMask * /* eventMask */ );
extern int
GrabWindow(ClientPtr /* client */ ,
DeviceIntPtr /* dev */ ,
int /* type */ ,
GrabParameters * /* param */ ,
GrabMask * /* eventMask */ );
extern int
GrabTouchOrGesture(ClientPtr /* client */ ,
DeviceIntPtr /* dev */ ,
DeviceIntPtr /* mod_dev */ ,
int /* type */ ,
GrabParameters * /* param */ ,
GrabMask * /* eventMask */ );
extern int
SelectForWindow(DeviceIntPtr /* dev */ ,
WindowPtr /* pWin */ ,
ClientPtr /* client */ ,
Mask /* mask */ ,
Mask /* exclusivemasks */ );
extern int
AddExtensionClient(WindowPtr /* pWin */ ,
ClientPtr /* client */ ,
Mask /* mask */ ,
int /* mskidx */ );
extern void
RecalculateDeviceDeliverableEvents(WindowPtr /* pWin */ );
extern int
InputClientGone(WindowPtr /* pWin */ ,
XID /* id */ );
extern void
WindowGone(WindowPtr /* win */ );
extern int
SendEvent(ClientPtr /* client */ ,
DeviceIntPtr /* d */ ,
Window /* dest */ ,
Bool /* propagate */ ,
xEvent * /* ev */ ,
Mask /* mask */ ,
int /* count */ );
extern int
SetButtonMapping(ClientPtr /* client */ ,
DeviceIntPtr /* dev */ ,
int /* nElts */ ,
BYTE * /* map */ );
extern int
ChangeKeyMapping(ClientPtr /* client */ ,
DeviceIntPtr /* dev */ ,
unsigned /* len */ ,
int /* type */ ,
KeyCode /* firstKeyCode */ ,
CARD8 /* keyCodes */ ,
CARD8 /* keySymsPerKeyCode */ ,
KeySym * /* map */ );
extern void
DeleteWindowFromAnyExtEvents(WindowPtr /* pWin */ ,
Bool /* freeResources */ );
extern int
MaybeSendDeviceMotionNotifyHint(deviceKeyButtonPointer * /* pEvents */ ,
Mask /* mask */ );
extern void
CheckDeviceGrabAndHintWindow(WindowPtr /* pWin */ ,
int /* type */ ,
deviceKeyButtonPointer * /* xE */ ,
GrabPtr /* grab */ ,
ClientPtr /* client */ ,
Mask /* deliveryMask */ );
extern void
MaybeStopDeviceHint(DeviceIntPtr /* dev */ ,
ClientPtr /* client */ );
extern int
DeviceEventSuppressForWindow(WindowPtr /* pWin */ ,
ClientPtr /* client */ ,
Mask /* mask */ ,
int /* maskndx */ );
extern void
SendEventToAllWindows(DeviceIntPtr /* dev */ ,
Mask /* mask */ ,
xEvent * /* ev */ ,
int /* count */ );
extern void
TouchRejected(DeviceIntPtr /* sourcedev */ ,
TouchPointInfoPtr /* ti */ ,
XID /* resource */ ,
TouchOwnershipEvent * /* ev */ );
extern _X_HIDDEN void XI2EventSwap(xGenericEvent * /* from */ ,
xGenericEvent * /* to */ );
/* For an event such as MappingNotify which affects client interpretation
* of input events sent by device dev, should we notify the client, or
* would it merely be irrelevant and confusing? */
extern int
XIShouldNotify(ClientPtr client, DeviceIntPtr dev);
extern void
XISendDeviceChangedEvent(DeviceIntPtr device, DeviceChangedEvent *dce);
extern int
XISetEventMask(DeviceIntPtr dev, WindowPtr win, ClientPtr client,
unsigned int len, unsigned char *mask);
extern int
XICheckInvalidMaskBits(ClientPtr client, unsigned char *mask, int len);
void
XTestDeviceSendEvents(DeviceIntPtr dev,
int type,
int detail,
int flags,
const ValuatorMask *mask);
#endif /* EXEVENTS_H */ #endif /* EXEVENTS_H */

View File

@ -30,18 +30,18 @@
#include <stdint.h> #include <stdint.h>
#include <X11/X.h> #include <X11/X.h>
#include "misc.h"
#include "resource.h"
#include <X11/Xproto.h> #include <X11/Xproto.h>
#include <X11/extensions/XI2proto.h> #include <X11/extensions/XI2proto.h>
#include <X11/Xatom.h> #include <X11/Xatom.h>
#include "windowstr.h"
#include "inputstr.h"
#include "exevents.h"
#include "dix/dix_priv.h" #include "dix/dix_priv.h"
#include "dix/eventconvert.h" #include "dix/eventconvert.h"
#include "dix/exevents_priv.h"
#include "misc.h"
#include "resource.h"
#include "windowstr.h"
#include "inputstr.h"
#include "exglobals.h" #include "exglobals.h"
#include "dixgrabs.h" #include "dixgrabs.h"
#include "eventstr.h" #include "eventstr.h"

View File

@ -30,15 +30,16 @@
#include <errno.h> #include <errno.h>
#include <stdint.h> #include <stdint.h>
#include <X11/extensions/XI2.h>
#include "dix/dix_priv.h" #include "dix/dix_priv.h"
#include "dix/exevents_priv.h"
#include "extinit_priv.h" #include "extinit_priv.h"
#include "exglobals.h" #include "exglobals.h"
#include "xkbsrv.h" /* for XkbInitPrivates */ #include "xkbsrv.h" /* for XkbInitPrivates */
#include "xserver-properties.h" #include "xserver-properties.h"
#include "syncsrv.h" #include "syncsrv.h"
#include <X11/extensions/XI2.h>
#include "protocol-common.h" #include "protocol-common.h"

View File

@ -28,14 +28,14 @@
#endif #endif
#include <stdint.h> #include <stdint.h>
#include <X11/extensions/XI2proto.h>
#include "dix/exevents_priv.h"
#include "dix/eventconvert.h" #include "dix/eventconvert.h"
#include "inputstr.h" #include "inputstr.h"
#include "eventstr.h" #include "eventstr.h"
#include "exevents.h"
#include "inpututils.h" #include "inpututils.h"
#include <X11/extensions/XI2proto.h>
#include "protocol-common.h" #include "protocol-common.h"

View File

@ -43,12 +43,14 @@
#include <X11/X.h> #include <X11/X.h>
#include <X11/Xproto.h> #include <X11/Xproto.h>
#include <X11/extensions/XI2proto.h> #include <X11/extensions/XI2proto.h>
#include "dix/exevents_priv.h"
#include "inputstr.h" #include "inputstr.h"
#include "windowstr.h" #include "windowstr.h"
#include "extinit.h" /* for XInputExtensionInit */ #include "extinit.h" /* for XInputExtensionInit */
#include "scrnintstr.h" #include "scrnintstr.h"
#include "xiselectev.h" #include "xiselectev.h"
#include "exevents.h"
#include "protocol-common.h" #include "protocol-common.h"

View File

@ -35,11 +35,13 @@
#include <X11/X.h> #include <X11/X.h>
#include <X11/Xproto.h> #include <X11/Xproto.h>
#include <X11/extensions/XI2proto.h> #include <X11/extensions/XI2proto.h>
#include "dix/exevents_priv.h"
#include "inputstr.h" #include "inputstr.h"
#include "windowstr.h" #include "windowstr.h"
#include "scrnintstr.h" #include "scrnintstr.h"
#include "xipassivegrab.h" #include "xipassivegrab.h"
#include "exevents.h"
#include "exglobals.h" #include "exglobals.h"
#include "protocol-common.h" #include "protocol-common.h"

View File

@ -43,6 +43,9 @@
#include <X11/X.h> #include <X11/X.h>
#include <X11/Xproto.h> #include <X11/Xproto.h>
#include <X11/extensions/XI2proto.h> #include <X11/extensions/XI2proto.h>
#include "dix/exevents_priv.h"
#include "inputstr.h" #include "inputstr.h"
#include "extinit.h" /* for XInputExtensionInit */ #include "extinit.h" /* for XInputExtensionInit */
#include "scrnintstr.h" #include "scrnintstr.h"

View File

@ -34,8 +34,10 @@ THE USE OR PERFORMANCE OF THIS SOFTWARE.
#include <X11/keysym.h> #include <X11/keysym.h>
#include <X11/extensions/XI.h> #include <X11/extensions/XI.h>
#include <X11/extensions/XIproto.h> #include <X11/extensions/XIproto.h>
#include "dix/exevents_priv.h"
#include "inputstr.h" #include "inputstr.h"
#include "exevents.h"
#include "exglobals.h" #include "exglobals.h"
#include "windowstr.h" #include "windowstr.h"
#include "xkbsrv_priv.h" #include "xkbsrv_priv.h"