Properly damage if moving cursor

Only damage if cursor is inside the target area
This commit is contained in:
dec05eba
2024-09-14 01:57:00 +02:00
parent 8acb346382
commit 714561987e
9 changed files with 79 additions and 16 deletions

View File

@@ -24,7 +24,7 @@ int gsr_cursor_init(gsr_cursor *self, gsr_egl *egl, Display *display);
void gsr_cursor_deinit(gsr_cursor *self);
/* Returns true if the cursor image has updated or if the cursor has moved */
bool gsr_cursor_update(gsr_cursor *self, XEvent *xev);
bool gsr_cursor_on_event(gsr_cursor *self, XEvent *xev);
void gsr_cursor_tick(gsr_cursor *self, Window relative_to);
#endif /* GSR_CURSOR_H */