weston/compositor
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
..
.gitignore Update .gitignores 2011-10-28 13:32:17 -04:00
compositor-drm.c compositor-drm: Fix setting O_CLOEXEC 2011-11-05 22:04:03 -04:00
compositor-openwfd.c compositor-*: check for surfaceless_gles2 instead of surfaceless_opengl 2011-11-01 11:18:39 -04:00
compositor-wayland.c compositor-*: check for surfaceless_gles2 instead of surfaceless_opengl 2011-11-01 11:18:39 -04:00
compositor-x11.c compositor-*: check for surfaceless_gles2 instead of surfaceless_opengl 2011-11-01 11:18:39 -04:00
compositor.c desktop-shell: screen locking protocol 2011-11-15 14:18:50 -05:00
compositor.h desktop-shell: screen locking protocol 2011-11-15 14:18:50 -05:00
evdev.c evdev: Simplify error path for device creation 2011-10-28 13:15:25 -04:00
image-loader.c compositor: Split backends into modules 2011-05-02 22:09:20 -04:00
Makefile.am De-brand the tablet shell 2011-11-14 15:57:59 -05:00
screenshooter.c Change remaining GPLv2 headers to MIT 2011-09-19 17:29:24 -04:00
shell.c desktop-shell: screen locking protocol 2011-11-15 14:18:50 -05:00
switcher.c Make use of wl_resource.destroy_listener_list for surfaces. 2011-05-06 16:03:33 -04:00
tablet-shell.c desktop-shell: screen locking protocol 2011-11-15 14:18:50 -05:00
tty.c compositor: choose tty from command line 2011-09-01 16:07:07 -04:00
xserver-launcher.c x11: Fix last-minute edit bug 2011-10-12 00:01:18 -04:00