Using Soft Keys with Weston & Libinput

Ucan, Emre (ADITG/SW1) eucan at
Thu Feb 4 10:38:18 UTC 2016


We want to use soft keys with weston.

The use-case is very similar to android that the touch panel is bigger than the display.
The out of display touch events should be routed to the clients as key events.

As far as I understood, It is not possible to realize this use-case in current weston implementation,
because the coordinates of touch events are scaled to width and height of the display with libinput_event_touch_get_x(y)_transformed API.

For example, when I touch a soft key (outside of display), the grab interface will still get a touch event in the range of display width and height,
and It will wrongly route this event to a wl_surface which is on the edge of the display. Weston cannot recognize that the event happened outside of the display.

Is there a way to realize this use-case that I do not know ?

Best regards

Emre Ucan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the wayland-devel mailing list