Dominig,

We did create the privilege http://tizen.org/privilege/window.property.set in 
Tizen 2.3. As far as I know this privilege can set the window's focus level, 
but not the granularity of every single windows.
Please check 
https://wiki.tizen.org/wiki/Security:Tizen_3.0_Core_Privileges#The_Core_privileges_list.

Bumjin

-- May the Force be with you 
---------------------------------------------------- 
* BumJin Im
* Senior Engineer,  Mobile S/W Platform lab, S/W Platform Team
   Samsung Electronics
---------------------------------------------------------------------------------



------- Original Message -------
Sender : Dominig Ar Foll<[email protected]>
Date : 2014-12-20 18:04 (GMT+09:00)
Title : Re: [Dev] [wayland] Non-rectangular Wayland window, input-through

Casey 
You might remember that, during our security workshop in Vannes, we talked 
about creating a privilege to stop non trusted applications to create such 
surface.
It's definitively needed. 
Dolinig

Le 19 déc. 2014 19:31, "Schaufler, Casey" <[email protected]> a écrit :

Wow. This looks like a security vulnerability. Imagine an app that presents 
itself as a window with lots of pinholes in it. The holes are too small to see, 
and you end up clicking the app behind it unawares of doing so. This seems like 
a *really bad* idea to this humble observer.


From: Dev [mailto:[email protected]] On Behalf Of Manuel Bachmann
Sent: Friday, December 19, 2014 8:35 AM
To: [email protected]
Subject: [Dev] [wayland] Non-rectangular Wayland window, input-through

Hi folks,

It has been asked recently how to make a non-rectangular Wayland window, where 
input events (mouse clicks, touch events) would go "through" the window and be 
received by windows stacked under it - think of a donut where clicking in the 
center passes through.
The answer consists in using "wl_region" elements together with the 
"wl_input_region" functions. The idea is to create a "wl_region" structure, 
populate it with several rectangles which will determine which parts of the 
surface are clickable, and then call "wl_surface_set_input_region" to make it 
effective.

Here is a sample code which demonstrates that :

http://www.tarnyko.net/repo/wayland-3-shm_surface_input_regions.c


And a screenshot :

http://www.tarnyko.net/repo/wayland-3-shm_surface_input_regions.png
This is a white rectangle with a hole in the center. Clicking in the hole will 
eventually activate other surfaces (here, a "weston-flower" instance).


-- 
Regards,

Manuel BACHMANN
Tizen Project
VANNES-FR

_______________________________________________
Dev mailing list
[email protected]
https://lists.tizen.org/listinfo/dev
_______________________________________________
Dev mailing list
[email protected]
https://lists.tizen.org/listinfo/dev

Reply via email to