Closed moniquelive closed 2 years ago
Run with --debug-input and see if events are being delivered to kitty by the system in that case. If not then there isnt anything kitty can do. If yes, then post the --debug-input log and I will take a look.
Running with --debug-input
outputs nothing when I turn the wheel, in both situations (with or without focus).
But scrolling behaves the same as described (works when unfocused, doesn't work when focused).
@kovidgoyal do you have a minimal glfw code I could tinker with to investigate this behavior? maybe there's a missing flag somewhere to enable these events.
On Fri, Jun 17, 2022 at 09:28:56AM -0700, Cyber Oliveira wrote:
@kovidgoyal do you have a minimal glfw code I could tinker with to investigate this behavior? maybe there's a missing flag somewhere to enable these events.
Ah, right debug input does not debug wheel events since I've never hear dof issues with them only. You dont need minimal glfw. The relevant code in glfw/cocoa_window.m look at scrollWheel() it should be trivial to ad a print there to check if the events are coming in from the system.
And another place to look is the scroll_event() function in kitty/mouse.c (where I have now added debug output for scroll events)
Thanks! That helped a lot! Now I'm trying to compile locally and this is happening:
python3 setup.py build \
--extra-include-dirs=/opt/homebrew/Cellar/librsync/2.3.2/include \
--extra-include-dirs=/opt/homebrew/Cellar/python@3.9/3.9.13_1/Frameworks/Python.framework/Versions/3.9/include/python3.9 \
--extra-library-dirs=/opt/homebrew/Cellar/librsync/2.3.2/lib \
--extra-library-dirs=/opt/homebrew/Cellar/python@3.9/3.9.13_1/Frameworks/Python.framework/Versions/3.9/lib
all goes well but...
$ ./kitty/launcher/kitty
dyld[16026]: Library not loaded: @rpath/Python3.framework/Versions/3.8/Python3
Referenced from: /Users/cyber/prj/c/kitty/kitty/launcher/kitty.app/Contents/MacOS/kitty
Reason: tried: '/Library/Frameworks/Python3.framework/Versions/3.8/Python3' (no such file), '/System/Library/Frameworks/Python3.framework/Versions/3.8/Python3' (no such file)
[1] 16026 abort ./kitty/launcher/kitty
How do I make it load the homebrew python instead of the non-existing system framework?
Answering myself:
β― /opt/homebrew/Cellar/python@3.9/3.9.13_1/bin/python3 setup.py build \
--extra-include-dirs=/opt/homebrew/Cellar/librsync/2.3.2/include \
--extra-include-dirs=/opt/homebrew/Cellar/python@3.9/3.9.13_1/Frameworks/Python.framework/Versions/3.9/include/python3.9 \
--extra-library-dirs=/opt/homebrew/Cellar/librsync/2.3.2/lib \
--extra-library-dirs=/opt/homebrew/Cellar/python@3.9/3.9.13_1/Frameworks/Python.framework/Versions/3.9/lib
Dont do any of that just run
make clean make debug ./kitty/launcher/kitty
It can't find librsync if I use make... :(
Then just
python setup.py build -I /path/to/folder/with/librsync.h --debug
Now the results:
I believe you changed something else when you added the debug log, because now it's working perfectly with the scroll wheel.
I double checked, my system version 0.25.2
still no scroll when focused, but the custom debug build scrolls both with and without focus!
Hah well good enough then
Maybe your release process somehow removes the code you added above, because the current homebrew version of kitty (0.26.2) won't scroll.. :(
It doesnt
Finally (!!!) Giving some closure to this matter. After reading an iterm2 issue the mistery was solved. Logitech's MX Master mouse scroll wheel (and any other custom button) won't work if secure keyboard is enabled.
In case of Kitty it's solved by pressing alt+cmd+s . It gets persisted between runs.
I can finally sleep in peace ππ»
Leaving this here for the frustrated from the future.
Mouse scrolling on Mac only works when Kitty's window is unfocused On macOS 12.4 and Kitty 0.25.2, bluetooth mouse scrolling only works if I click away from Kitty's window. Using the built-in trackpad works both with and without focus. Macbook Pro 14" 2021 (M1).
To Reproduce Steps to reproduce the behavior:
Environment details
Additional context Trying to reproduce the problem with
kitty --config NONE
has the same behavior.