From a9a86e46040e39c6ed2e6cf7e744c56c41d11948 Mon Sep 17 00:00:00 2001 From: esell Date: Tue, 18 Sep 2018 10:56:26 -0600 Subject: Add option to enable custom cursor on macos --- kitty/config_data.py | 3 ++- kitty/main.py | 4 +--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/kitty/config_data.py b/kitty/config_data.py index 098d537b..1fecb39c 100644 --- a/kitty/config_data.py +++ b/kitty/config_data.py @@ -291,7 +291,8 @@ def cursor_text_color(x): return return to_color(x) - +o('macos_custom_beam_cursor', False, long_text=_('''Enable/disable custom cursor for macOS. WARNING, +this might make your cursor invisible on dual GPU machines.''')) o('cursor', '#cccccc', _('Default cursor color'), option_type=to_color) o('cursor_text_color', '#111111', option_type=cursor_text_color, long_text=_(''' Choose the color of text under the cursor. If you want it rendered with the diff --git a/kitty/main.py b/kitty/main.py index a619f86f..be691b5f 100644 --- a/kitty/main.py +++ b/kitty/main.py @@ -120,9 +120,7 @@ def get_new_os_window_trigger(opts): def _run_app(opts, args): new_os_window_trigger = get_new_os_window_trigger(opts) - if False and is_macos: - # This is disabled because using custom cursors fails - # on dual GPU machines: https://github.com/kovidgoyal/kitty/issues/794 + if is_macos and opts.macos_custom_beam_cursor: set_custom_ibeam_cursor() load_all_shaders.cursor_text_color = opts.cursor_text_color if not is_wayland and not is_macos: # no window icons on wayland -- cgit v1.2.3