Revise Xserver behaviour for issue:"First wheel event to unfocused window is missing with xinput2" #295
Replies: 2 comments 5 replies
-
https://bugzilla.gnome.org/show_bug.cgi?id=750870#c3 and https://gitlab.gnome.org/GNOME/gtk/-/issues/558 and https://who-t.blogspot.com/2012/06/xi-21-protocol-design-issues.html are related. As far as I gathered
Also, if one doesn't need smooth scrolling for mouse wheel but is fine with the "send one scroll event after 1 scroll step on mouse wheel" behavior, then it is already possible to use xinput2 and have gestures and scrolling in unfocused windows. Installing and running imwheel (intercepts mousewheel events) accomplishes that, although I don't know how it interacts with other bugs and heuristic workarounds here and there. If xinput2 smooth scrolling turns out to be not fixable, then an alternative plan could be to decouple smooth scrolling and gestures. E.g. provide an option to use xinput2 without smooth scrolling. That would allow enabling xinput2 and trackpad gestures to everyone, and the choice would be between "no smooth scrolling" and "smooth scrolling with wheel bugs", and not about gestures. |
Beta Was this translation helpful? Give feedback.
-
Qt framework doing exactly same (only uses one request): https://github.com/qt/qtbase/blob/4fa8dfee5dd31433d22fdb449c1783e256931c8f/src/plugins/platforms/xcb/qxcbwindow.cpp#L2256 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Describe the idea
Technically X11Libre/xserver#553 is not a bug , at least in literal sense. But digging deeper how GTK library implemented xinput2 scrolling, IT good be good idea tweak XIEnterEvent event and include XIValuators for all pointer axes to account for discontinuities. thus it would be minimal change in gtk to not miss first event.
It should be done because
It looks like most logical solution without added extra rountrips
What are the alternatives?
Ater XIEnterEvent requests data about device like I did or send unsolicited Motion event for scroll bars.
Additional context
See: X11Libre/xserver#553
Extra fields
Beta Was this translation helpful? Give feedback.
All reactions