This commit is contained in:
Kovid Goyal 2023-10-14 06:05:32 +05:30
parent 1f91250a40
commit cae19bba60
No known key found for this signature in database
GPG key ID: 06BC317B515ACE7C

View file

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