How to grab the input event exclusively?
Lance Bai
lancebai at gmail.com
Mon Dec 21 07:45:36 PST 2015
Hi Pekka,
thanks for your reply.
On Mon, Dec 21, 2015 at 3:02 PM, Pekka Paalanen <ppaalanen at gmail.com> wrote:
> On Mon, 21 Dec 2015 14:35:14 +0000
> Lance Bai <lancebai at gmail.com> wrote:
>
> > Dear All,
> >
> > I have a question regarding grabbing the key input in weston.
> >
> > I am running weston-1.8.92 on raspberry pi2(i.e compositor-rpi, launch
> with
> > weston-launch), and found that the /dev/input/eventX file descriptor is
> > read by both weston and tty, which means the input will be showed on the
> > tty terminial as well. However, I would like the key input taken by the
> > weston application only, without showing what I type in TTY.
>
> That sounds terrible. Please file a bug report.
>
>
sure, I am going to create a bug report regarding that.
> Should I set the input event fd with EVIOCGRAB in weston_launcher_open,
> > like libinput/tools/shared.c? or is there any better approach?
>
> The VT input should get disabled as part of the launching sequence and
> also in the VT-switching sequence. Sounds like that's not working right.
>
> Or it is possible that Weston is showing, but not on the VT it thinks
> it is.
>
is there a easy way to check this?
>
> Do you have systemd or not?
>
no, I do not build systemd on my rpi2 develop environment.
>
>
> Thanks,
> pq
>
--
BR,
Lance Bai
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/wayland-devel/attachments/20151221/094d683d/attachment.html>
More information about the wayland-devel
mailing list