added option to restore window position and size
[psensor.git] / src / cfg.h
index b61a469..eebfc60 100644 (file)
--- a/src/cfg.h
+++ b/src/cfg.h
@@ -41,8 +41,14 @@ struct config {
        int sensorlist_position;
 
        int window_decoration_enabled;
-
        int window_keep_below_enabled;
+       int window_restore_enabled;
+       /* Last saved position of the window. */
+       int window_x;
+       int window_y;
+       /* Last saved size of the window. */
+       int window_w;
+       int window_h;
 
        int graph_update_interval;
        int graph_monitoring_duration;
@@ -53,6 +59,8 @@ struct config {
        int menu_bar_disabled;
 
        int unity_launcher_count_disabled;
+
+       int hide_on_startup;
 };
 
 /*
@@ -64,6 +72,8 @@ void config_save(struct config *);
 
 void config_init();
 
+void config_cleanup();
+
 struct color *config_get_sensor_color(char *sensor_name,
                                      struct color *default_color);