is there any interface to set key mask (or filter?) of surface ?
Mark Lee
ivorycloud1013 at gmail.com
Wed Aug 14 15:32:47 UTC 2019
OK. I'll make it simple.
system (TV) composes of a graphic compositor based QtWayland and clients
used Qt, web, and native framework.
a couple of applications can be foreground, and also they can get input
events through compositor input handling logic.
unlike most system, our product provides RCU (remote control: only
keyboard) and MRCU (Magic RCU: keyboard + pointer).
generally, there is no trouble about input event propagation considering
input region of client and surface z-order at compositor-side.
but, why it needs to use key mask is that and what it is use case of it is
following,
*1) key masking between parent and child surface using wl_subsurface*
- (init state) parent has wl_keyboard focus.
- keyboard event happens. (ex. channel number key)
- compositor asks parent accept the key (HOW?), (maybe unaccept it)
child surface should get and consume it.
*2) key masking ? between exporter and importer surface using wl_foreign*
- (init state) parent has wl_keyboard focus.
- keyboard event happens. (ex. arrow key, it can be navigated
throughout visible items including exporter and importer surfaces)
- compositor asks parent accept the key (HOW?), (maybe unacceptably it)
child surface should get wl_keyboard focus and consume the key.
- since next keys, compositor asks client first.
How do you think about it ?
In my knowledge,
compositor should provides dynamic key masking interface in reference to
keymap like keyboard
but... it is complicated to use by client dynamically according to
situation of application ?
2019년 8월 14일 (수) 오후 5:40, Pekka Paalanen <ppaalanen at gmail.com>님이 작성:
> On Tue, 13 Aug 2019 00:44:48 +0900
> Mark Lee <ivorycloud1013 at gmail.com> wrote:
>
> > HI experts:
> >
> > I works on Qt framework using QtWayland library.
> >
> > I need to set key (keyboard) mask of overlay application (higher z),
> > and other keys pass to fullscreen (lower z) application.
> >
> > For example,
> > overlay wanna consume only 4-arrow keys,
> > and other keys would go to fullscreen.
> >
> > I've searched Wayland and Wayland-protocol branch,
> > but I can't find yet.
>
> Hi,
>
> there is no such thing in the Wayland protocol or extensions as I
> know of.
>
> If you explained in more detail what your architecture looks like,
> one might be able to say something helpful. What processes are
> there, what do they do, which ones are Wayland servers, which ones
> are Wayland clients, who is a client to which server, and so on.
>
>
> Thanks,
> pq
>
--
Sincerely, Jinho Lee
Tel) +82 010 7923 8620
ivorycloud1013 at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/wayland-devel/attachments/20190815/f772465a/attachment.html>
More information about the wayland-devel
mailing list