summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoresell <esell@esheavyindustries.com>2018-09-18 10:56:26 -0600
committeresell <esell@esheavyindustries.com>2018-09-18 10:56:26 -0600
commita9a86e46040e39c6ed2e6cf7e744c56c41d11948 (patch)
tree09738e0804387ec36ddf5db0ffad7f037a912a52
parent1dc7c23b2fcbe59b5169817299b05282598e23cc (diff)
Add option to enable custom cursor on macos
-rw-r--r--kitty/config_data.py3
-rw-r--r--kitty/main.py4
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