mirror of
https://github.com/X11Libre/xserver.git
synced 2026-04-07 19:21:41 +00:00
Since it's storing an locally defined (ddx-internal) data, it's better not to abuse some globally defined key for this. It just happened to work before, since CursorScreenKey is only used by DDX (and there's only one DDX per executable) and they currently (!) have the same size (pointer) - but that's a fragile programming style, so clean it up. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1342>
54 lines
1.6 KiB
C
54 lines
1.6 KiB
C
|
|
#ifdef HAVE_XORG_CONFIG_H
|
|
#include <xorg-config.h>
|
|
#endif
|
|
|
|
#ifndef _XF86CURSORPRIV_H
|
|
#define _XF86CURSORPRIV_H
|
|
|
|
#include "xf86Cursor.h"
|
|
#include "mipointrst.h"
|
|
|
|
typedef struct {
|
|
Bool SWCursor;
|
|
Bool isUp;
|
|
Bool showTransparent;
|
|
short HotX;
|
|
short HotY;
|
|
short x;
|
|
short y;
|
|
CursorPtr CurrentCursor, CursorToRestore;
|
|
xf86CursorInfoPtr CursorInfoPtr;
|
|
CloseScreenProcPtr CloseScreen;
|
|
RecolorCursorProcPtr RecolorCursor;
|
|
InstallColormapProcPtr InstallColormap;
|
|
QueryBestSizeProcPtr QueryBestSize;
|
|
miPointerSpriteFuncPtr spriteFuncs;
|
|
Bool PalettedCursor;
|
|
ColormapPtr pInstalledMap;
|
|
Bool (*SwitchMode) (ScrnInfoPtr, DisplayModePtr);
|
|
xf86EnableDisableFBAccessProc *EnableDisableFBAccess;
|
|
CursorPtr SavedCursor;
|
|
|
|
/* Number of requests to force HW cursor */
|
|
int ForceHWCursorCount;
|
|
Bool HWCursorForced;
|
|
|
|
void *transparentData;
|
|
} xf86CursorScreenRec, *xf86CursorScreenPtr;
|
|
|
|
Bool xf86SetCursor(ScreenPtr pScreen, CursorPtr pCurs, int x, int y);
|
|
void xf86SetTransparentCursor(ScreenPtr pScreen);
|
|
void xf86MoveCursor(ScreenPtr pScreen, int x, int y);
|
|
void xf86RecolorCursor(ScreenPtr pScreen, CursorPtr pCurs, Bool displayed);
|
|
Bool xf86InitHardwareCursor(ScreenPtr pScreen, xf86CursorInfoPtr infoPtr);
|
|
|
|
Bool xf86CheckHWCursor(ScreenPtr pScreen, CursorPtr cursor, xf86CursorInfoPtr infoPtr);
|
|
extern _X_EXPORT DevPrivateKeyRec xf86CursorScreenKeyRec;
|
|
|
|
#define xf86CursorScreenKey (&xf86CursorScreenKeyRec)
|
|
|
|
extern DevScreenPrivateKeyRec xf86ScreenCursorBitsKeyRec;
|
|
|
|
#endif /* _XF86CURSORPRIV_H */
|