Keyboard icon gives feedback on screen lock
[gregoa/zavai.git] / src / app_power.vala
index 82ceaec4f973cfc9d21f85d2c544eca934991c62..f3f587b01585312271754f352d26ef58b3bcfdd4 100644 (file)
@@ -35,6 +35,8 @@ public class Power : zavai.Resource, Object
 
        private bool hide_after_closing_power_menu;
 
+       public signal void screen_lock_changed(bool state);
+
        public Power()
        {
                screen_locked = false;
@@ -87,6 +89,8 @@ public class Power : zavai.Resource, Object
                        Posix.close(screen_lock_fd);
                }
                screen_locked = locked;
+
+               screen_lock_changed(locked);
        }
 
        private void on_power_button(Posix.timeval* t, bool pressed)