mirror of
https://repo.dec05eba.com/gpu-screen-recorder
synced 2026-05-05 14:30:43 +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;
|
||||
}
|
||||
|
||||
XISelectEvents(self->display, DefaultRootWindow(self->display), NULL, 0);
|
||||
XFixesSelectCursorInput(self->display, DefaultRootWindow(self->display), 0);
|
||||
if(self->display) {
|
||||
XISelectEvents(self->display, DefaultRootWindow(self->display), NULL, 0);
|
||||
XFixesSelectCursorInput(self->display, DefaultRootWindow(self->display), 0);
|
||||
}
|
||||
|
||||
self->display = NULL;
|
||||
self->egl = NULL;
|
||||
|
||||
Reference in New Issue
Block a user