- // --------------------------------------------------
- // always start with area
- Area area;
-
- // --------------------------------------------------
- // backward compatibility
- int old_config_file;
- int old_task_icon;
- int old_panel_background;
- int old_task_background;
- char *old_task_font;
-
- // --------------------------------------------------
- // panel
- int signal_pending;
- int sleep_mode;
- int refresh;
- int monitor;
- int position;
- int marginx, marginy;
-
- // --------------------------------------------------
- // taskbar point to the first taskbar in panel.area.list. number of tasbar == nb_desktop x nb_monitor.
- //Taskbar *taskbar;
- int mode;
- int nb_desktop;
- int nb_monitor;
- Task *task_active;
- Task *task_drag;
-
- // --------------------------------------------------
- // clock
- Clock clock;
-
- // --------------------------------------------------
- // systray
-
- // --------------------------------------------------
- // mouse events
- int mouse_middle;
- int mouse_right;
- int mouse_scroll_up;
- int mouse_scroll_down;
+ // always start with area
+ // area.list own all objects of the panel according to config file
+ Area area;
+
+ // --------------------------------------------------
+ // panel
+ Window main_win;
+ Pixmap temp_pmap;
+
+ // position relative to root window
+ int posx, posy;
+ int marginx, marginy;
+ int pourcentx, pourcenty;
+ // location of the panel (monitor number)
+ int monitor;
+
+ // --------------------------------------------------
+ // task and taskbar parameter per panel
+ Global_taskbar g_taskbar;
+ Global_task g_task;
+
+ // --------------------------------------------------
+ // taskbar point to the first taskbar in panel.area.list.
+ // number of tasbar == nb_desktop. taskbar[i] is for desktop(i).
+ // taskbar[i] is used to loop over taskbar,
+ // while panel->area.list is used to loop over all panel's objects
+ Taskbar *taskbar;
+ int nb_desktop;
+
+ // --------------------------------------------------
+ // clock
+ Clock clock;
+
+ // --------------------------------------------------
+ // battery
+#ifdef ENABLE_BATTERY
+ Battery battery;
+#endif
+
+ Launcher launcher;
+
+ // autohide
+ int is_hidden;
+ int hidden_width, hidden_height;
+ Pixmap hidden_pixmap;
+ timeout* autohide_timeout;