9ef3e012d6
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> |
||
---|---|---|
.. | ||
desktop-shell.xml | ||
screenshooter.xml | ||
tablet-shell.xml | ||
xserver.xml |