mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-06-24 18:07:01 +00:00
Ensure we dont pass a NULL pointer to wl_pointer_set_cursor()
Possible fix for #7139
This commit is contained in:
parent
be92cc87a4
commit
ce2e1b0813
1 changed files with 1 additions and 0 deletions
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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue