Fix task visilibility problem, issue 481

git-svn-id: http://tint2.googlecode.com/svn/trunk@750 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
This commit is contained in:
o9000 2015-04-12 16:02:03 +00:00 committed by mrovi9000@gmail.com
parent 75f8a07ca4
commit e49e05ad69

View file

@ -554,7 +554,8 @@ void set_task_state(Task *tsk, int state)
hide = 1;
}
}
if (window_get_monitor(tsk->win) != ((Panel*)tsk->area.panel)->monitor) {
if (window_get_monitor(tsk->win) != ((Panel*)tsk->area.panel)->monitor &&
(hide_task_diff_monitor || nb_panel > 1)) {
hide = 1;
}
if (1 - hide != tsk1->area.on_screen) {