X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Ftint2;a=blobdiff_plain;f=src%2Fpanel.c;h=3971bc8021564bd182f5ddea39db7eb9c85dc06c;hp=7e21f86371100871d61ac51c7ac57d1fdb5db46a;hb=275fa7c8678c39a1c1f7437de12aac0144f61a85;hpb=bfc74d2e0eccdf838ab14a1e3843374ee0848038 diff --git a/src/panel.c b/src/panel.c index 7e21f86..3971bc8 100644 --- a/src/panel.c +++ b/src/panel.c @@ -303,10 +303,11 @@ void init_panel_size_and_position(Panel *panel) int resize_panel(void *obj) -{ - int ret = resize_by_layout(obj); +{ + resize_by_layout(obj, 0); - if (panel_mode != MULTI_DESKTOP) { + //printf("resize_panel\n"); + if (panel_mode != MULTI_DESKTOP && taskbar_enabled) { // propagate width/height on hidden taskbar int i, width, height; Panel *panel = (Panel*)obj; @@ -318,7 +319,7 @@ int resize_panel(void *obj) panel->taskbar[i].area.resize = 1; } } - return ret; + return 0; } @@ -522,7 +523,6 @@ void set_panel_background(Panel *p) } // redraw panel's object - //p->area.redraw = 1; GSList *l0; Area *a; for (l0 = p->area.list; l0 ; l0 = l0->next) { @@ -530,11 +530,16 @@ void set_panel_background(Panel *p) set_redraw(a); } - // reset task 'state_pix' - int i; + // reset task/taskbar 'state_pix' + int i, k; Taskbar *tskbar; for (i=0 ; i < p->nb_desktop ; i++) { tskbar = &p->taskbar[i]; + for (k=0; kstate_pix[k]) XFreePixmap(server.dsp, tskbar->state_pix[k]); + tskbar->state_pix[k] = 0; + } + tskbar->area.pix = 0; for (l0 = tskbar->area.list; l0 ; l0 = l0->next) { set_task_redraw((Task *)l0->data); }