Make sure to track only mapped override-redirect windows.
svn path=/branches/work/kwin_composite/; revision=621333
This commit is contained in:
parent
3a58fc2ea3
commit
579f174e63
2 changed files with 2 additions and 2 deletions
|
@ -33,7 +33,7 @@ bool Unmanaged::track( Window w )
|
|||
{
|
||||
XWindowAttributes attr;
|
||||
grabXServer();
|
||||
if( !XGetWindowAttributes(display(), w, &attr))
|
||||
if( !XGetWindowAttributes(display(), w, &attr) || attr.map_state != IsViewable )
|
||||
{
|
||||
ungrabXServer();
|
||||
return false;
|
||||
|
|
|
@ -370,7 +370,7 @@ void Workspace::init()
|
|||
XGetWindowAttributes(display(), wins[i], &attr);
|
||||
if (attr.override_redirect )
|
||||
{
|
||||
if( attr.map_state != IsUnmapped && attr.c_class != InputOnly && compositing())
|
||||
if( compositing())
|
||||
createUnmanaged( wins[ i ] );
|
||||
continue;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue