all repos — tint2 @ ea430f92db6396c1008ea9ef991c541407eb98d6

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

start task on another monitor

git-svn-id: http://tint2.googlecode.com/svn/trunk@214 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
lorthiois@bbsoft.fr lorthiois@bbsoft.fr@121b4492-b84c-0410-8b4c-0d4edfb3f3cc
commit

ea430f92db6396c1008ea9ef991c541407eb98d6

parent

f626291e765fa09c9bac5b8f95ab0e55787d40c5

1 files changed, 5 insertions(+), 2 deletions(-)

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

@@ -43,10 +43,13 @@ int monitor;

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