How to grab the input event exclusively?
Derek Foreman
derekf at osg.samsung.com
Mon Dec 21 10:45:44 PST 2015
On 21/12/15 09:45 AM, Lance Bai wrote:
> Hi Pekka,
>
> thanks for your reply.
>
> On Mon, Dec 21, 2015 at 3:02 PM, Pekka Paalanen <ppaalanen at gmail.com
> <mailto:ppaalanen at gmail.com>> wrote:
>
> On Mon, 21 Dec 2015 14:35:14 +0000
> Lance Bai <lancebai at gmail.com <mailto: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?
>
lsof /dev/tty*
should show you what has the tty files open
Are you passing any command line parameters to weston-launch? Are you
running as a regular user?
>
>
> Do you have systemd or not?
>
>
> no, I do not build systemd on my rpi2 develop environment.
>
>
>
>
> Thanks,
> pq
>
>
>
>
> --
> BR,
> Lance Bai
>
>
> _______________________________________________
> wayland-devel mailing list
> wayland-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/wayland-devel
>
More information about the wayland-devel
mailing list