fixed bug when active window draged to another desktop

git-svn-id: http://tint2.googlecode.com/svn/trunk@135 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
This commit is contained in:
lorthiois@bbsoft.fr
2009-06-29 19:50:29 +00:00
parent f100b49158
commit 94a8948466
4 changed files with 15 additions and 7 deletions

View File

@@ -479,11 +479,16 @@ void event_property_notify (XEvent *e)
// Window desktop changed
else if (at == server.atom._NET_WM_DESKTOP) {
int desktop = window_get_desktop (win);
int active = tsk->area.is_active;
//printf(" Window desktop changed %d, %d\n", tsk->desktop, desktop);
// bug in windowmaker : send unecessary 'desktop changed' when focus changed
if (desktop != tsk->desktop) {
remove_task (tsk);
add_task (win);
tsk = add_task (win);
if (tsk && active) {
tsk->area.is_active = 1;
task_active = tsk;
}
panel_refresh = 1;
}
}