fixed bug in taskbar drawing

git-svn-id: http://tint2.googlecode.com/svn/trunk@245 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
This commit is contained in:
lorthiois@bbsoft.fr
2009-10-31 11:58:45 +00:00
parent 12e73beb50
commit e8b4fb6bbc
4 changed files with 26 additions and 24 deletions

View File

@@ -402,9 +402,9 @@ void event_property_notify (XEvent *e)
if (panel_mode == MULTI_DESKTOP && panel->g_taskbar.use_active) {
// redraw both taskbar
panel->taskbar[old_desktop].area.is_active = 0;
panel->taskbar[old_desktop].area.redraw = 1;
panel->taskbar[old_desktop].area.resize = 1;
panel->taskbar[server.desktop].area.is_active = 1;
panel->taskbar[server.desktop].area.redraw = 1;
panel->taskbar[server.desktop].area.resize = 1;
panel_refresh = 1;
}
// check ALLDESKTOP task => resize taskbar
@@ -780,7 +780,7 @@ int main (int argc, char *argv[])
break;
case ReparentNotify:
if (!systray.area.on_screen)
if (!systray_enabled)
break;
panel = (Panel*)systray.area.panel;
if (e.xany.window == panel->main_win) // reparented to us