[PATCH 9/9] desktop-shell: add unlock dialog

Pekka Paalanen ppaalanen at gmail.com
Tue Nov 15 04:00:33 PST 2011


On Tue, 15 Nov 2011 13:34:56 +0200
Pekka Paalanen <ppaalanen at gmail.com> wrote:

> The unclock dialog is just a normal window with a green ball in it.
> When you click the ball, the screen will be unlocked.
> 
> Made for testing the screen locking.
> 
> Signed-off-by: Pekka Paalanen <ppaalanen at gmail.com>
> ---
>  clients/desktop-shell.c |  165
> ++++++++++++++++++++++++++++++++++++++++++++++- 1 files changed, 162
> insertions(+), 3 deletions(-)


All the patches in these two series can also be found in:

	git://git.collabora.co.uk/git/user/pq/wayland-demos.git locking

In addition, there is branch 'locking-debug' which contains one more
commit for printing out compositor's surface list before and after lock
and resume. Here's also a cgit link:

http://cgit.collabora.com/git/user/pq/wayland-demos.git/

I have tested every commit so that they at least build and run with
desktop-shell under X11.

How to test:

To have a proper config file for desktop-shell, copy
wayland-desktop-shell.ini to either $HOME/.config/ or to
$XDG_CONFIG_HOME/ and edit it to your needs.

Start the compositor with option: -i 5
to have the idle timeout as 5 seconds, to easily test locking.

After idle timeout, compositor fades to black, and few seconds
afterwards locks itself. When you then wake it up by e.g. moving the
mouse, it fades back, but you will only have the background and an
unlock dialog. Click the green dot in the dialog to restore the desktop.

The desktop should restore fully, and surfaces created and deleted
while being locked should all work. When the compositor is locked, you
should not be able to see or provide any input to the normal
applications.

I challenge you to break (into) it ;-)


Thanks,
pq


More information about the wayland-devel mailing list