Cloudef/wlc

Touch event reports view by mouse position

Closed this issue · 5 comments

kozec commented

Hello,

I'm playing with touch events and I've noticed pretty weird behavior - view reported by touch events is not view that user is touching, but view that mouse pointer is above.

Is this intentional?

The mouse pointer should probably be moved in response to touch events.

kozec commented

The mouse pointer should probably be moved in response to touch events.

Yes, but even doing that is not enough, as first touch event always fires before pointer is moved and thus reports wrong view.

Sure, it sounds like a bug to me.

kozec commented

By the way, another problem where I'm not 100% sure if it's a bug...

Code in touch.c appears to send touch events with coordinates in screen space, but I'm pretty sure that Wayland client expects them in surface space. Tapping on gnome calculator suggest the same, as button that is actually pressed when I touch its window is offseted and offset depends on window position.

Definitely sounds like a bug to me.