This commit is contained in:
Kovid Goyal
2018-09-19 18:13:20 +05:30
3 changed files with 12 additions and 3 deletions

View File

@@ -54,6 +54,11 @@ Changelog
- Linux: Fix window icon not set on X11 for the first OS window (:iss:`961`) - Linux: Fix window icon not set on X11 for the first OS window (:iss:`961`)
- macOS: Add an :opt:`macos_custom_beam_cursor` option to use a special
mouse cursor image that can be seen on both light and dark backgrounds
(:iss:`359`)
0.12.1 [2018-09-08] 0.12.1 [2018-09-08]
------------------------------ ------------------------------

View File

@@ -790,6 +790,12 @@ common font sizes.
o('macos_traditional_fullscreen', False, long_text=_(''' o('macos_traditional_fullscreen', False, long_text=_('''
Use the traditional full-screen transition, that is faster, but less pretty. Use the traditional full-screen transition, that is faster, but less pretty.
''')) '''))
# Disabled by default because of https://github.com/kovidgoyal/kitty/issues/794
o('macos_custom_beam_cursor', False, long_text=_('''
Enable/disable custom mouse cursor for macOS that is easier to see on both
light and dark backgrounds. WARNING: this might make your mouse cursor
invisible on dual GPU machines.'''))
# }}} # }}}
g('shortcuts') # {{{ g('shortcuts') # {{{

View File

@@ -120,9 +120,7 @@ def get_new_os_window_trigger(opts):
def _run_app(opts, args): def _run_app(opts, args):
new_os_window_trigger = get_new_os_window_trigger(opts) new_os_window_trigger = get_new_os_window_trigger(opts)
if False and is_macos: if is_macos and opts.macos_custom_beam_cursor:
# This is disabled because using custom cursors fails
# on dual GPU machines: https://github.com/kovidgoyal/kitty/issues/794
set_custom_ibeam_cursor() set_custom_ibeam_cursor()
load_all_shaders.cursor_text_color = opts.cursor_text_color load_all_shaders.cursor_text_color = opts.cursor_text_color
if not is_wayland and not is_macos: # no window icons on wayland if not is_wayland and not is_macos: # no window icons on wayland