all repos — tint2 @ 503a4b68457e8c8ddb18711af2d2b5b158ce1685

fork of the tint2 desktop panel for my custom setup - only minimized windows across all desktops for the taskbar

cleanup

git-svn-id: http://tint2.googlecode.com/svn/trunk@578 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
thilor77 thilor77@121b4492-b84c-0410-8b4c-0d4edfb3f3cc
commit

503a4b68457e8c8ddb18711af2d2b5b158ce1685

parent

c01b7f480ea0182b3a15096554bf43c9f8a1ef7d

2 files changed, 4 insertions(+), 4 deletions(-)

jump to
M src/taskbar/taskbar.csrc/taskbar/taskbar.c

@@ -60,13 +60,16 @@ void cleanup_taskbar()

{ Panel *panel; Taskbar *tskbar; - int i, j; + int i, j, k; if (win_to_task_table) g_hash_table_foreach(win_to_task_table, taskbar_remove_task, 0); for (i=0 ; i < nb_panel ; i++) { panel = &panel1[i]; for (j=0 ; j < panel->nb_desktop ; j++) { tskbar = &panel->taskbar[j]; + for (k=0; k<TASKBAR_STATE_COUNT; ++k) { + if (tskbar->state_pix[k]) XFreePixmap(server.dsp, tskbar->state_pix[k]); + } free_area (&tskbar->area); // remove taskbar from the panel panel->area.list = g_slist_remove(panel->area.list, tskbar);
M src/taskbar/taskbar.hsrc/taskbar/taskbar.h

@@ -22,7 +22,6 @@ // always start with area

Area area; int desktop; - int current_state; Pixmap state_pix[TASKBAR_STATE_COUNT]; // task parameters

@@ -34,8 +33,6 @@ typedef struct {

//always start with area Area area; Background* background[TASKBAR_STATE_COUNT]; - //Background* bg; - //Background* bg_active; } Global_taskbar;