Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mouse_hide_wait not working #1073

Closed
igorkaludjer opened this issue Oct 16, 2018 · 14 comments
Closed

mouse_hide_wait not working #1073

igorkaludjer opened this issue Oct 16, 2018 · 14 comments

Comments

@igorkaludjer
Copy link

mouse_hide_wait 3.0 does not hide the mouse cursor. Using kitty 0.12.3 on MacOS Mojave.

@kovidgoyal
Copy link
Owner

I canont replicate on my mojave machine with kitty running from aster.
Steps I tried:

  1. Run kitty as: kitty -o mouse_hide_wait=3.0
  2. Move the mouse cursor over the kitty window
  3. wait a few seconds
  4. mouse cursor is hidden

@igorkaludjer
Copy link
Author

Tried the same steps, but does not work for me. Maybe there's some system pref that I'm missing.

@Luflosi
Copy link
Contributor

Luflosi commented Oct 18, 2018

This also does not work for me, I have to press a key after the 3 seconds or whatever the setting is have passed to make the mouse cursor disappear. Interestingly even a modifier key is enough, tested with cmd and shift. Running kitty with kitty --config NONE -o mouse_hide_wait=1.0 does hide the cursor correctly, so this seems to be some entry in my kitty.conf. I'll find out which entry is causing this.

@Luflosi
Copy link
Contributor

Luflosi commented Oct 18, 2018

cursor_blink_interval 0 is causing this. If I change it to a higher value, the cursor disappears after that amount of time. It seems like the mouse cursor is only hidden, whenever the cursor blinks.

@igorkaludjer
Copy link
Author

igorkaludjer commented Oct 18, 2018

Does not work for me even when I set cursor_blink_interval to a higher value.

@Luflosi
Copy link
Contributor

Luflosi commented Oct 18, 2018

What happens when you start kitty with kitty --config NONE -o mouse_hide_wait=1.0?

@kovidgoyal
Copy link
Owner

If there is no activity, then kitty will sit waiting for an event, so mouse hiding will only hapen at the enxt event, this is normal.

@igorkaludjer
Copy link
Author

@Luflosi Sometimes that works, but other times I have to first move the mouse cursor then wait, then press any key. Also I can't figure out which config line is preventing this from working. All I have changed are fonts, colors, shell, macos_option_as_alt no and macos_thicken_font 0.75

@kovidgoyal
Copy link
Owner

if you leave the mouse over a kitty window and then wait the requisite amount of time and type anything, the mouse cursor should always be hidden. The intent of this feature is to hide the mouse while typing, so that it does not distract.

@igorkaludjer
Copy link
Author

It is hidden only if I run kitty with --config NONE, otherwise it's not and I can't figure out which config is the problem.

@kovidgoyal
Copy link
Owner

Do a bisect of your config file.

@igorkaludjer
Copy link
Author

It is the cursor_blink_interval. If it's set to any value (if it's uncommented) the mouse cursor is not hiding. Also cursor_stop_blinking_after has to have a higher value than mouse_hide_wait for cursor to be hidden.

@Luflosi
Copy link
Contributor

Luflosi commented Oct 19, 2018

This is consistent with my theory

It seems like the mouse cursor is only hidden, whenever the cursor blinks.

and that theory was confirmed by @kovidgoyal.
Maybe we can somehow generate an event after the mouse_hide_wait time is up.

@Luflosi
Copy link
Contributor

Luflosi commented Oct 20, 2018

This works, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants