mirror of
https://github.com/X11Libre/xserver.git
synced 2026-09-22 20:35:43 +00:00
Xi: Adding ChangeDeviceCursor request
This commit is contained in:
parent
9fd2f167ec
commit
95e1a88050
9 changed files with 456 additions and 5 deletions
|
|
@ -67,6 +67,10 @@ SOFTWARE.
|
|||
#define WT_NOMATCH 3
|
||||
#define NullWindow ((WindowPtr) 0)
|
||||
|
||||
/* Forward declaration, we can't include input.h here */
|
||||
struct _DeviceIntRec;
|
||||
struct _Cursor;
|
||||
|
||||
typedef struct _BackingStore *BackingStorePtr;
|
||||
typedef struct _Window *WindowPtr;
|
||||
|
||||
|
|
@ -143,6 +147,15 @@ extern int ChangeWindowAttributes(
|
|||
XID* /*vlist*/,
|
||||
ClientPtr /*client*/);
|
||||
|
||||
extern int ChangeWindowDeviceCursor(
|
||||
WindowPtr /*pWin*/,
|
||||
struct _DeviceIntRec* /*pDev*/,
|
||||
struct _Cursor* /*pCursor*/);
|
||||
|
||||
extern struct _Cursor* WindowGetDeviceCursor(
|
||||
WindowPtr /*pWin*/,
|
||||
struct _DeviceIntRec* /*pDev*/);
|
||||
|
||||
/* Quartz support on Mac OS X uses the HIToolbox
|
||||
framework whose GetWindowAttributes function conflicts here. */
|
||||
#ifdef __DARWIN__
|
||||
|
|
|
|||
|
|
@ -70,6 +70,13 @@ SOFTWARE.
|
|||
#define SameBorder(as, a, bs, b) \
|
||||
EqualPixUnion(as, a, bs, b)
|
||||
|
||||
/* used as NULL-terminated list */
|
||||
typedef struct _DevCursorNode {
|
||||
CursorPtr cursor;
|
||||
DeviceIntPtr dev;
|
||||
struct _DevCursorNode* next;
|
||||
} DevCursNodeRec, *DevCursNodePtr, *DevCursorList;
|
||||
|
||||
typedef struct _WindowOpt {
|
||||
VisualID visual; /* default: same as parent */
|
||||
CursorPtr cursor; /* default: window.cursorNone */
|
||||
|
|
@ -89,6 +96,7 @@ typedef struct _WindowOpt {
|
|||
#ifdef XINPUT
|
||||
struct _OtherInputMasks *inputMasks; /* default: NULL */
|
||||
#endif
|
||||
DevCursorList deviceCursors; /* default: NULL */
|
||||
} WindowOptRec, *WindowOptPtr;
|
||||
|
||||
#define BackgroundPixel 2L
|
||||
|
|
|
|||
Loading…
Reference in a new issue