summaryrefslogtreecommitdiff
path: root/mi/mipointer.h
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2016-05-18 16:03:47 -0500
committerAdam Jackson <ajax@redhat.com>2016-05-25 11:00:56 -0400
commit3f9015b6dc9e7e9c97f8717dea6af9f4d8523f2e (patch)
tree2af3c7d519d0e9f4b571f8aa735812b7e13fa50b /mi/mipointer.h
parent4e124203f2260daaf54155f4a05fe469733e0b97 (diff)
xwayland: Move sprite invalidation logic into mipointer
This creates a function that invalidates the current sprite and forces a sprite image reload the next time the sprite is checked, moving that logic out of the xwayland sources and allowing the miPointerRec structure to be removed from the server API. Signed-off-by: Keith Packard <keithp@keithp.com> Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
Diffstat (limited to 'mi/mipointer.h')
-rw-r--r--mi/mipointer.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/mi/mipointer.h b/mi/mipointer.h
index bdeed1242..7ce6409b3 100644
--- a/mi/mipointer.h
+++ b/mi/mipointer.h
@@ -109,6 +109,12 @@ miPointerSetPosition(DeviceIntPtr pDev, int mode, double *x, double *y,
extern _X_EXPORT void
miPointerUpdateSprite(DeviceIntPtr pDev);
+/* Invalidate current sprite, forcing reload on next
+ * sprite setting (window crossing, grab action, etc)
+ */
+extern _X_EXPORT void
+miPointerInvalidateSprite(DeviceIntPtr pDev);
+
/* Sets whether the sprite should be updated immediately on pointer moves */
extern _X_EXPORT Bool
miPointerSetWaitForUpdate(ScreenPtr pScreen, Bool wait);