New guy

Magnus Hoff maghoff+wayland at gmail.com
Wed Jul 16 05:14:39 PDT 2014


Hi Jasper :) Thanks for your response! :)

On Tue, Jul 15, 2014 at 1:59 PM, Jasper St. Pierre
<jstpierre at mecheye.net> wrote:
> On Tue, Jul 15, 2014 at 7:48 AM, Magnus Hoff <maghoff+wayland at gmail.com>
> wrote:
>>  * Support for (sub-)pixel resolution of two-finger scroll. In X.org,
>> two-finger scroll is mapped to button-events, which means that the
>> resolution of scrolling is reduced to line-level. Can we support such
>> smooth scrolling in wayland?
>
>
> Smooth scrolling is supported in XI2 by some special axes, but not a lot of
> applications support this.

XI2... is that this thing?
http://www.x.org/releases/X11R7.6/doc/inputproto/XI2proto.txt

So, you're telling me that X.org does indeed support smooth scrolling,
but I have not experienced it because (basically) none of the
applications have implemented support?


> Scrolling in Wayland is done by the "axis" event [0], which describes
> relative changes on an axis, and not by button presses. So apps couldn't do
> chunky scrolling even if they wanted to!

That sounds good :)

However, the reason I brought this issue up is that I can't seem to do
two-finger scrolling at all in wayland/weston. Does weston-terminal
support this? Or any of the other example apps?

I see now that scrolling works for X-apps running on Xwayland (both
for stand-alone weston and weston nested inside X), so maybe my
problem is primarily that none of my wayland apps support scrolling?

I have noticed what looks like a bug, by the way: When turning smooth
scrolling into chunky scrolling, the system doesn't seem to accumulate
fractional chunks, so if you're moving your fingers slower than a
threshold speed, no scrolling happens.


> If you're running Weston under X11, then that doesn't have support for XI2
> smooth scrolling, it just uses the button presses [1]. The nested X11 is
> more meant as a testing and debugging, so it only supports core events. If
> you want to get XI2 and smooth scrolling working for the nested X11
> compositor, I don't think anybody would mind.

Ah, cool. Noted. But maybe Weston under X11 isn't the most important component.


>> * Similar support for several-finger-gestures. In X.org, I use
>> touchegg to switch workspaces by a four-finger swipe. The interaction
>> is like this: 1. put four fingers on touchpad, 2. swipe left/right, 3.
>> let fingers go, 4. observe that the workspace changes. The
>> corresponding interaction in OS X is like this: 1. put three fingers
>> on touchpad, 2. as I swipe left or right, the workspaces on the screen
>> respond proportionately by moving right/left, 3. as I let go, one of
>> the workspaces snap to fill the screen.
>
>
>> The feedback in OS X is immediate, making the interaction feel much
>> better and leaves the user with a much greater feeling of control. Can
>> we support this in wayland?
>
>
> XI2 is really unfortunate with how its protocol handles touch. We recently
> added gesture support in GNOME for X11. I'm not too familiar with it myself,
> so I'm CC'ing Carlos Garnacho, who wrote our gestures implementation, to see
> if he has any feedback about whether the Wayland protocol works fine and
> would allow for really smooth gestures.

OK. I would love smooth gestures, so I would appreciate input here :)


-m


More information about the wayland-devel mailing list