cleanup code

git-svn-id: http://tint2.googlecode.com/svn/trunk@562 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
This commit is contained in:
thilor77
2010-09-23 18:09:30 +00:00
parent e68c361951
commit 98c3cbe874
10 changed files with 41 additions and 40 deletions

View File

@@ -219,9 +219,10 @@ void init_panel()
if (panel_autohide)
add_timeout(panel_autohide_hide_timeout, 0, autohide_hide, p);
visible_taskbar(p);
}
visible_object();
task_refresh_tasklist();
active_task();
}
@@ -301,29 +302,6 @@ void init_panel_size_and_position(Panel *panel)
}
void visible_object()
{
Panel *panel;
int i, j;
for (i=0 ; i < nb_panel ; i++) {
panel = &panel1[i];
Taskbar *taskbar;
for (j=0 ; j < panel->nb_desktop ; j++) {
taskbar = &panel->taskbar[j];
if (panel_mode != MULTI_DESKTOP && taskbar->desktop != server.desktop) {
// SINGLE_DESKTOP and not current desktop
taskbar->area.on_screen = 0;
}
else {
taskbar->area.on_screen = 1;
}
}
}
panel_refresh = 1;
}
void update_strut(Panel* p)
{
if (panel_strut_policy == STRUT_NONE) {