mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-26 18:22:09 +02:00
Ensure we dont pass a NULL pointer to wl_pointer_set_cursor()
Possible fix for #7139
This commit is contained in:
1
glfw/wl_window.c
vendored
1
glfw/wl_window.c
vendored
@@ -207,6 +207,7 @@ setCursorImage(_GLFWwindow* window, bool on_theme_change) {
|
||||
struct wl_buffer* buffer = NULL;
|
||||
struct wl_surface* surface = _glfw.wl.cursorSurface;
|
||||
const int scale = window->wl.scale;
|
||||
if (!_glfw.wl.pointer) return;
|
||||
|
||||
if (cursorWayland->scale < 0) {
|
||||
buffer = cursorWayland->buffer;
|
||||
|
||||
Reference in New Issue
Block a user