Enerccio / ewlc

Wayland compositor library - extended
MIT License
20 stars 3 forks source link

Simulate key presses #38

Open WLCIssuesBot opened 7 years ago

WLCIssuesBot commented 7 years ago

Issue by SirCmpwn Saturday Sep 26, 2015 at 16:35 GMT Originally opened as https://github.com/Cloudef/wlc/issues/70


I would like to be able to send simulated keypresses to wayland clients.

WLCIssuesBot commented 7 years ago

Comment by Cloudef Saturday Sep 26, 2015 at 17:08 GMT


A) wlc would need to support this. B) We could open wayland internals more, we already pretty much expose libinput and xkb to keep simple.

WLCIssuesBot commented 7 years ago

Comment by SirCmpwn Saturday Sep 26, 2015 at 17:10 GMT


The use-case for this is an on-screen keyboard, fwiw.

WLCIssuesBot commented 7 years ago

Comment by Cloudef Saturday Sep 26, 2015 at 17:11 GMT


Weston implements on-screen keyboards too. It might be useful to see how they solved it.

WLCIssuesBot commented 7 years ago

Comment by Cloudef Saturday Sep 26, 2015 at 17:22 GMT


For approach B), https://github.com/Cloudef/wlc/blob/feature/wayland-extensions/include/wlc/wlc-wayland.h could include function that returns input resources for view. From there on you can do anything wayland-server.h allows.

WLCIssuesBot commented 7 years ago

Comment by Cloudef Wednesday Sep 30, 2015 at 19:12 GMT


71 somewhat related.