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

@@ -676,7 +676,7 @@ void gsr_egl_unload(gsr_egl *self) {
memset(self, 0, sizeof(gsr_egl));
}
bool gsr_egl_update(gsr_egl *self) {
bool gsr_egl_process_event(gsr_egl *self) {
switch(gsr_egl_get_display_server(self)) {
case GSR_DISPLAY_SERVER_X11: {
if(XPending(self->x11.dpy)) {