compositor: let shell override idle time
authorPekka Paalanen <ppaalanen@gmail.com>
Wed, 7 Dec 2011 14:22:00 +0000 (16:22 +0200)
committerPekka Paalanen <ppaalanen@gmail.com>
Wed, 14 Dec 2011 11:50:35 +0000 (13:50 +0200)
commit7296e7984f2a68459720882d5244a0109bc7c866
tree28ab3984782fc079c6a04df67510f53664745e4c
parente955f1edd1104795daf7727f683300287d4e5686
compositor: let shell override idle time

Move idle_time variable to struct wlsc_compositor, so that a shell
plugin can change it. Also store the original value from the command
line.

Add "duration" option to the desktop-shell screensaver config. This is
the time the screensaver will be visible, after idle timeout triggers
another time and blanks the screen.

Now you can have different delays to lock the screen, and switch off the
screen while a screensaver is running.

Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
compositor/compositor.c
compositor/compositor.h
compositor/shell.c
wayland-desktop-shell.ini