weston/clients
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
cairo-util.c cairo-util: Fix another last-minute typo 2011-10-20 14:44:48 -04:00
cairo-util.h cairo-util: Add helper to load jpeg files 2011-10-20 13:11:12 -04:00
config.c config: fix boolean parsing 2011-11-15 09:04:56 -05:00
desktop-shell.c desktop-shell: screen locking protocol 2011-11-15 14:18:50 -05:00
dnd.c window: Remove display_flush_cairo_device 2011-10-07 10:05:57 +02:00
eventdemo.c window.c: Drop global handler argument 2011-08-29 17:12:36 -04:00
flower.c window: Stop using glib mainloop in toy toolkit 2011-09-19 17:28:55 -04:00
gears.c gears: Fail if compiled without cairo-egl 2011-10-07 10:06:01 +02:00
image.c window: Stop using glib mainloop in toy toolkit 2011-09-19 17:28:55 -04:00
Makefile.am window: Add a cheesy parser for ini-files, use it in desktop-shell 2011-11-14 22:51:02 -05:00
resizor.c window: Stop using glib mainloop in toy toolkit 2011-09-19 17:28:55 -04:00
screenshot.c window: Stop using glib mainloop in toy toolkit 2011-09-19 17:28:55 -04:00
simple-egl.c simple-egl: Remove leftover wl_visual variable 2011-10-19 21:16:58 -04:00
simple-shm.c Move away from visuals and just use EGLConfigs or shm format tokens 2011-08-31 16:21:38 -04:00
smoke.c window: Stop using glib mainloop in toy toolkit 2011-09-19 17:28:55 -04:00
terminal.c window: Stop using glib mainloop in toy toolkit 2011-09-19 17:28:55 -04:00
view.c Add missing include for gio.h. 2011-10-24 11:58:24 -04:00
window.c window: Avoid setting an invalid surface for the pointer 2011-10-25 12:20:51 +01:00
window.h window: add a helper for config file paths 2011-11-15 08:57:01 -05:00