X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2Fpanel.c;h=87bab8d42c9bef723c27571d038685cf3d4dd48e;hb=4dce187faca271ff3c26faba30cc8010b5c6f2e8;hp=ed17cb33cde46ef6ec6d34c02b23681a32b39876;hpb=43df01880e106d710ea57a2025db17f7d7db74fa;p=chaz%2Ftint2 diff --git a/src/panel.c b/src/panel.c index ed17cb3..87bab8d 100644 --- a/src/panel.c +++ b/src/panel.c @@ -86,10 +86,12 @@ void default_panel() task_active = 0; task_drag = 0; task_dragged = 0; + panel_horizontal = 1; + panel_position = CENTER; panel_autohide = 0; panel_autohide_show_timeout = 0; panel_autohide_hide_timeout = 0; - panel_autohide_height; // for vertical panels this is of course the width + panel_autohide_height = 5; // for vertical panels this is of course the width panel_strut_policy = STRUT_MINIMUM; panel_dock = 0; // default not in the dock panel_layer = BOTTOM_LAYER; // default is bottom layer @@ -784,6 +786,7 @@ void autohide_hide(void* p) XUnmapSubwindows(server.dsp, panel->main_win); // systray windows int diff = (panel_horizontal ? panel->area.height : panel->area.width) - panel_autohide_height; + //printf("autohide_hide : diff %d, w %d, h %d\n", diff, panel->hidden_width, panel->hidden_height); if (panel_horizontal) { if (panel_position & TOP) XResizeWindow(server.dsp, panel->main_win, panel->hidden_width, panel->hidden_height);