/* 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 "include/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 */
