X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2Fpanel.h;h=e4174d98ac1f7bc6a0b39bddf782e13feb3e4519;hb=e7c43073246afe07cddf67d40d545f2bebcf62a1;hp=257563a2528dca4963b055847beacf523bc9e0cd;hpb=e050df33d29de6f7890b7111f6ea871aa5247743;p=chaz%2Ftint2 diff --git a/src/panel.h b/src/panel.h index 257563a..e4174d9 100644 --- a/src/panel.h +++ b/src/panel.h @@ -19,6 +19,7 @@ #include "task.h" #include "taskbar.h" #include "systraybar.h" +#include "launcher.h" #ifdef ENABLE_BATTERY #include "battery.h" @@ -59,8 +60,6 @@ extern int panel_autohide_hide_timeout; extern int panel_autohide_height; // for vertical panels this is of course the width extern int panel_strut_policy; -extern Task *task_active; -extern Task *task_drag; extern int max_tick_urgent; extern GArray* backgrounds; @@ -109,6 +108,8 @@ typedef struct { Battery battery; #endif + Launcher launcher; + // autohide int is_hidden; int hidden_width, hidden_height; @@ -133,7 +134,7 @@ void cleanup_panel(); void init_panel(); void init_panel_size_and_position(Panel *panel); -void resize_panel(void *obj); +int resize_panel(void *obj); void set_panel_properties(Panel *p); void visible_object(); @@ -146,11 +147,15 @@ Panel *get_panel(Window win); Taskbar *click_taskbar (Panel *panel, int x, int y); Task *click_task (Panel *panel, int x, int y); +Launcher *click_launcher (Panel *panel, int x, int y); +LauncherIcon *click_launcher_icon (Panel *panel, int x, int y); int click_padding(Panel *panel, int x, int y); int click_clock(Panel *panel, int x, int y); Area* click_area(Panel *panel, int x, int y); -void autohide_trigger_show(); -void autohide_trigger_hide(); +void autohide_show(void* p); +void autohide_hide(void* p); +void autohide_trigger_show(Panel* p); +void autohide_trigger_hide(Panel* p); #endif