From cae19bba6089072ce2c1230947df3bf249d3eac3 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 14 Oct 2023 06:05:32 +0530 Subject: [PATCH] ... --- kitty/mouse.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/kitty/mouse.c b/kitty/mouse.c index 87ad347fa..3860cfce4 100644 --- a/kitty/mouse.c +++ b/kitty/mouse.c @@ -322,7 +322,11 @@ extend_selection(Window *w, bool ended, bool extend_nearest) { static void set_mouse_cursor_for_screen(Screen *screen) { - mouse_cursor_shape = screen->modes.mouse_tracking_mode == NO_TRACKING ? OPT(default_pointer_shape): OPT(pointer_shape_when_grabbed); + if (screen->modes.mouse_tracking_mode == NO_TRACKING) { + mouse_cursor_shape = OPT(default_pointer_shape); + } else { + mouse_cursor_shape = OPT(pointer_shape_when_grabbed); + } } static void