]> Dogcows Code - chaz/tint2/blobdiff - src/panel.h
add wm_menu config option to disable window manager s menu
[chaz/tint2] / src / panel.h
index 3a4b6dd0a9bca6230ab98bd63a771e021becd00f..ef4f33c2934c06d2762a3a222d9fc8fef9044770 100644 (file)
@@ -14,6 +14,7 @@
 #include <pango/pangocairo.h>
 #include <sys/time.h>
 
+#include "battery.h"
 #include "common.h"
 #include "clock.h"
 #include "task.h"
@@ -33,6 +34,7 @@ extern int mouse_scroll_down;
 //panel mode
 enum { SINGLE_DESKTOP=0, MULTI_DESKTOP, SINGLE_MONITOR };
 extern int panel_mode;
+extern int wm_menu;
 
 //panel position
 enum { LEFT=0x01, RIGHT=0x02, CENTER=0X04, TOP=0X08, BOTTOM=0x10 };
@@ -42,16 +44,19 @@ extern int panel_refresh;
 
 extern Task *task_active;
 extern Task *task_drag;
+extern Task *task_urgent;
 
 
 typedef struct {
    // always start with area
+   // area.list own all objects of the panel according to config file
    Area area;
 
    // --------------------------------------------------
    // panel
    Window main_win;
-   Pixmap root_pmap;
+   Pixmap temp_pmap;
+
    // position relative to root window
        int posx, posy;
    int marginx, marginy;
@@ -75,12 +80,10 @@ typedef struct {
    // clock
    Clock clock;
 
-   // --------------------------------------------------
-   // systray
-   Systraybar trayer;
+       // --------------------------------------------------
+       // battery
+       Battery battery;
 
-       // global taskbar parameter
-       //Area g_systraybar;
 } Panel;
 
 
@@ -90,13 +93,15 @@ extern int  nb_panel;
 
 void init_panel();
 void cleanup_panel();
-void visual_refresh(Panel *p);
+void resize_panel(void *obj);
+
 void set_panel_properties(Panel *p);
 void visible_object();
 
 // draw background panel
 void set_panel_background(Panel *p);
 
+// detect witch panel
 Panel *get_panel(Window win);
 
 #endif
This page took 0.023908 seconds and 4 git commands to generate.