mirror of
https://github.com/KeithDHedger/LFSDesktopProject.git
synced 2025-08-03 16:06:31 +00:00
Fixed erroniously showing unmapped but extant windows in taskbar
This commit is contained in:
@ -1,4 +1,5 @@
|
||||
0.2.1
|
||||
Fixed erroniously showing unmapped but extant windows in taskbar,
|
||||
Fixed right side image when using background.
|
||||
Fixed setting window background.
|
||||
Fixed unminimizing windows.
|
||||
|
@ -170,6 +170,7 @@ Window doTreeWalkForTasks(Window wind)
|
||||
unsigned long n=0;
|
||||
Status st;
|
||||
taskStruct tsk;
|
||||
XWindowAttributes wattr;
|
||||
|
||||
if (!XQueryTree(apc->display,wind,&root,&parent,&children,&n_children))
|
||||
return None;
|
||||
@ -186,6 +187,12 @@ Window doTreeWalkForTasks(Window wind)
|
||||
{
|
||||
if(!hasProp(children[j],WM_STATE))
|
||||
continue;
|
||||
else
|
||||
{
|
||||
XGetWindowAttributes(apc->display,children[j],&wattr);
|
||||
if(wattr.map_state==IsUnmapped)
|
||||
continue;
|
||||
}
|
||||
|
||||
if(hasProp(children[j],WM_CLASS))
|
||||
{
|
||||
|
Reference in New Issue
Block a user