Ensure we dont pass a NULL pointer to wl_pointer_set_cursor()

Possible fix for #7139
This commit is contained in:
Kovid Goyal
2024-02-20 23:31:18 +05:30
parent be92cc87a4
commit ce2e1b0813

1
glfw/wl_window.c vendored
View File

@@ -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;