start task on another monitor

git-svn-id: http://tint2.googlecode.com/svn/trunk@214 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
This commit is contained in:
lorthiois@bbsoft.fr 2009-10-16 19:38:43 +00:00
parent f626291e76
commit ea430f92db

View file

@ -43,10 +43,13 @@ Task *add_task (Window win)
Task new_tsk;
new_tsk.win = win;
new_tsk.area.panel = &panel1[0];
new_tsk.desktop = window_get_desktop (win);
if (nb_panel > 1) monitor = window_get_monitor (win);
if (nb_panel > 1) {
monitor = window_get_monitor (win);
if (monitor >= nb_panel) monitor = 0;
}
else monitor = 0;
new_tsk.area.panel = &panel1[monitor];
// allocate only one title and one icon
// even with task_on_all_desktop and with task_on_all_panel