From 9c4942b190f90750f78d275aea5ba86dd3795220 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 14 Oct 2021 10:01:55 +0530 Subject: [PATCH] Ensure mouse cursor shape is correct Previously, the shape was only set on focus in events and when hovering urls. However, on macOS there are no focus events generated when the mouse moves between the window and the titlebar/menubar, thus causing incorrect mouse shape. Fix #4118 --- kitty/mouse.c | 1 + 1 file changed, 1 insertion(+) diff --git a/kitty/mouse.c b/kitty/mouse.c index 0520375df..0b16b129e 100644 --- a/kitty/mouse.c +++ b/kitty/mouse.c @@ -505,6 +505,7 @@ currently_pressed_button(void) { HANDLER(handle_event) { modifiers &= ~GLFW_LOCK_MASK; + set_mouse_cursor_for_screen(w->render_data.screen); if (button == -1) { button = currently_pressed_button(); handle_move_event(w, button, modifiers, window_idx);