xserver/mi/mipointer_priv.h
Enrico Weigelt, metux IT consult 6349773d5e mi: (re)export and document miPointerInitialize()
Xrdp project request exporting this function again, because (unlike the
usual xf86-video-* drivers) they need their own custom cursor handling:
RDP is designed to draw cursors on client side.

Also documenting what the function does.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1787>
2025-02-13 23:53:39 +00:00

30 lines
945 B
C

/* SPDX-License-Identifier: MIT OR X11
*
* Copyright © 2024 Enrico Weigelt, metux IT consult <info@metux.net>
*/
#ifndef _XSERVER_MI_MIPOINTER_PRIV_H
#define _XSERVER_MI_MIPOINTER_PRIV_H
#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);
/* Invalidate current sprite, forcing reload on next
* sprite setting (window crossing, grab action, etc)
*/
void miPointerInvalidateSprite(DeviceIntPtr pDev);
/* Sets whether the sprite should be updated immediately on pointer moves */
Bool miPointerSetWaitForUpdate(ScreenPtr pScreen, Bool wait);
extern DevPrivateKeyRec miPointerPrivKeyRec;
#define miPointerPrivKey (&miPointerPrivKeyRec)
#endif /* _XSERVER_MI_MIPOINTER_PRIV_H */