weston/protocol
Pekka Paalanen 9ef3e012d6 desktop-shell: screen locking protocol
Add protocol and functions for supporting screen locking, triggered by
activity timeout.

After activity timeout, compositor starts the fade to black, and then
enters SLEEPING state. At that point it calls lock() in the shell
plugin.

When input events trigger a wakeup, unlock() in the shell plugin is
called. This sends prepare_lock_surface event to the desktop-shell
client. The screen stays locked while the compositor starts fade-in.

At this point, desktop-shell client usually creates a surface for the
unlocking GUI (e.g. a password prompt), and sends it with the
set_lock_surface request. The compositor supposedly shows and allows
interaction only with the given lock surface (not yet implemented).

When desktop-shell has authenticated the user, or instead of issuing
set_lock_surface, it sends the unlock request. Upon receiving the unlock
request, the shell plugin unlocks the screen.

If desktop-shell client dies, the screen is unlocked automatically.

Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
2011-11-15 14:18:50 -05:00
..
desktop-shell.xml desktop-shell: screen locking protocol 2011-11-15 14:18:50 -05:00
screenshooter.xml compositor: Screenhoot into a client provided shm buffer 2011-05-02 12:13:14 -04:00
tablet-shell.xml De-brand the tablet shell 2011-11-14 15:57:59 -05:00
xserver.xml compositor: Add a simple WM to the xserver launcher 2011-07-01 10:46:40 -04:00