*fix* finally fixed issue 145
git-svn-id: http://tint2.googlecode.com/svn/trunk@263 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
This commit is contained in:
17
src/tint.c
17
src/tint.c
@@ -480,14 +480,19 @@ void event_property_notify (XEvent *e)
|
|||||||
else {
|
else {
|
||||||
tsk = task_get_task (win);
|
tsk = task_get_task (win);
|
||||||
if (!tsk) {
|
if (!tsk) {
|
||||||
// some stupid wm send _NET_WM_STATE after the window was minimized to tray???
|
|
||||||
if (at != server.atom._NET_WM_STATE)
|
if (at != server.atom._NET_WM_STATE)
|
||||||
return;
|
return;
|
||||||
else if (!window_is_skip_taskbar(win)) {
|
else {
|
||||||
if (tsk = add_task(win))
|
// xfce4 sends _NET_WM_STATE after minimized to tray, so we need to check if window is mapped
|
||||||
panel_refresh = 1;
|
// if it is mapped and not set as skip_taskbar, we must add it to our task list
|
||||||
else
|
XWindowAttributes wa;
|
||||||
return;
|
XGetWindowAttributes(server.dsp, win, &wa);
|
||||||
|
if (wa.map_state == IsViewable && !window_is_skip_taskbar(win)) {
|
||||||
|
if ( (tsk = add_task(win)) )
|
||||||
|
panel_refresh = 1;
|
||||||
|
else
|
||||||
|
return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//printf("atom root_win = %s, %s\n", XGetAtomName(server.dsp, at), tsk->title);
|
//printf("atom root_win = %s, %s\n", XGetAtomName(server.dsp, at), tsk->title);
|
||||||
|
|||||||
Reference in New Issue
Block a user