-
-
Notifications
You must be signed in to change notification settings - Fork 171
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
Window scrolls too fast in MacOS Sonoma #4309
Comments
You don't need to specify the display
That's odd, there were no significant changes to the keyboard mapping code in 6.1
Is it really scrolling too fast or is the display garbled? xpra/xpra/client/gtk3/window_base.py Lines 2595 to 2610 in 6aeb1f9
|
@totaam Thanks!
I also noticed in "./xpra/client/mixins/windows.py:275" if the --mousewheel=coarse, the client will disable smooth wheel.
After setting that parameter, it's better. But we lost smooth scrolling (It's like the touchpad scrolling events were intercepted into multiple old style mouse wheel actions). I'm using Ubuntu in a virtual machine as the server. Maybe I need to mock a mouse with precision wheels. Do you have any idea? Thank you so much ~ |
code link: xpra/xpra/client/mixins/windows.py Lines 274 to 278 in 85c7a36
This flag is only used here: xpra/xpra/client/gtk3/window_base.py Lines 385 to 389 in 85c7a36
In turn this allows us to process smooth scroll events here: xpra/xpra/client/gtk3/window_base.py Lines 2598 to 2603 in 85c7a36
Perhaps the |
Maybe we should disable smooth scrolling if the server doesn't support it? |
How about this patch: diff --git a/xpra/client/gtk3/window_base.py b/xpra/client/gtk3/window_base.py
index 15b59c3294..e9941bdf8c 100644
--- a/xpra/client/gtk3/window_base.py
+++ b/xpra/client/gtk3/window_base.py
@@ -384,7 +384,7 @@ class GTKClientWindowBase(ClientWindowBase, Gtk.Window):
def get_window_event_mask(self) -> Gdk.EventMask:
mask = WINDOW_EVENT_MASK
- if self._client.wheel_smooth:
+ if self._client.wheel_smooth and self._client.server_precise_wheel:
mask |= Gdk.EventMask.SMOOTH_SCROLL_MASK
return mask
|
@totaam No effect. Event if I comment out this function, the scroll still works. Looks like it is not how it works. I'll continue digging into the code. |
Then it is the regular scroll handler that fires and it would be very odd if we needed to normalize these values. |
Sounds like: #4360 (comment) I was working on another ticket and stumbled upon this code: xpra/xpra/platform/darwin/gui.py Lines 621 to 624 in 8441c73
Which calls wheel_event_handler from the quartz event filter:
This commit claims to re-enable the handler: 4991165 but I think it is still missing from when we moved to GTK3. When you say "Window scrolls too fast in MacOS Sonoma", did you try older versions? |
Describe the bug
Window scrolls too fast in MacOS Sonoma
To Reproduce
Steps to reproduce the behavior:
System Information (please complete the following information):
Additional context
The Windows client version 6.1 is okay. The reason I'm using 6.0.1 is when using 6.1 the keyboard can not be recongized. But it's another thread for sure.
The text was updated successfully, but these errors were encountered: