aboutsummaryrefslogtreecommitdiff
path: root/include/cursor.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/cursor.h')
-rw-r--r--include/cursor.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/cursor.h b/include/cursor.h
index b1ec6bd..1564714 100644
--- a/include/cursor.h
+++ b/include/cursor.h
@@ -15,12 +15,14 @@ typedef struct {
vec2i position;
bool cursor_image_set;
+ bool visible;
} gsr_cursor;
int gsr_cursor_init(gsr_cursor *self, gsr_egl *egl, Display *display);
void gsr_cursor_deinit(gsr_cursor *self);
-void gsr_cursor_update(gsr_cursor *self, XEvent *xev);
+/* Returns true if the cursor image has updated or if the cursor has moved */
+bool gsr_cursor_on_event(gsr_cursor *self, XEvent *xev);
void gsr_cursor_tick(gsr_cursor *self, Window relative_to);
#endif /* GSR_CURSOR_H */