mirror of
https://repo.dec05eba.com/gpu-screen-recorder
synced 2026-05-07 15:19:55 +09:00
x11 cursor deinit: check if display is valid
This commit is contained in:
@@ -146,8 +146,10 @@ void gsr_cursor_deinit(gsr_cursor *self) {
|
|||||||
self->texture_id = 0;
|
self->texture_id = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
XISelectEvents(self->display, DefaultRootWindow(self->display), NULL, 0);
|
if(self->display) {
|
||||||
XFixesSelectCursorInput(self->display, DefaultRootWindow(self->display), 0);
|
XISelectEvents(self->display, DefaultRootWindow(self->display), NULL, 0);
|
||||||
|
XFixesSelectCursorInput(self->display, DefaultRootWindow(self->display), 0);
|
||||||
|
}
|
||||||
|
|
||||||
self->display = NULL;
|
self->display = NULL;
|
||||||
self->egl = NULL;
|
self->egl = NULL;
|
||||||
|
|||||||
Reference in New Issue
Block a user