From 714561987e264c5f3e9fb01d9ebbf545225b35b7 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sat, 14 Sep 2024 01:57:00 +0200 Subject: Properly damage if moving cursor Only damage if cursor is inside the target area --- include/cursor.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/cursor.h') diff --git a/include/cursor.h b/include/cursor.h index 2f26dfd..323d098 100644 --- a/include/cursor.h +++ b/include/cursor.h @@ -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 */ -- cgit v1.2.3