mirror of
https://github.com/kovidgoyal/kitty
synced 2026-06-06 01:05:48 +02:00
Fix #8138
This commit is contained in:
2
glfw/wl_client_side_decorations.c
vendored
2
glfw/wl_client_side_decorations.c
vendored
@@ -702,7 +702,7 @@ set_cursor(GLFWCursorShape shape, _GLFWwindow* window)
|
||||
struct wl_cursor_theme *theme = glfw_wlc_theme_for_scale(scale);
|
||||
if (!theme) return;
|
||||
cursor = _glfwLoadCursor(shape, theme);
|
||||
if (!cursor) return;
|
||||
if (!cursor || !cursor->images) return;
|
||||
image = cursor->images[0];
|
||||
if (!image) return;
|
||||
if (image->width % scale || image->height % scale) {
|
||||
|
||||
3
glfw/wl_window.c
vendored
3
glfw/wl_window.c
vendored
@@ -251,8 +251,7 @@ setCursorImage(_GLFWwindow* window, bool on_theme_change) {
|
||||
_glfwInputError(GLFW_PLATFORM_ERROR, "Wayland: late cursor load failed; proceeding with existing cursor");
|
||||
}
|
||||
}
|
||||
if (!cursorWayland->cursor || !cursorWayland->cursor->image_count)
|
||||
return;
|
||||
if (!cursorWayland->cursor || !cursorWayland->cursor->image_count || !cursorWayland->cursor->images) return;
|
||||
if (cursorWayland->currentImage >= cursorWayland->cursor->image_count) cursorWayland->currentImage = 0;
|
||||
image = cursorWayland->cursor->images[cursorWayland->currentImage];
|
||||
if (!image) image = cursorWayland->cursor->images[0];
|
||||
|
||||
Reference in New Issue
Block a user