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;
|
XWindowAttributes attr;
|
||||||
grabXServer();
|
grabXServer();
|
||||||
if( !XGetWindowAttributes(display(), w, &attr))
|
if( !XGetWindowAttributes(display(), w, &attr) || attr.map_state != IsViewable )
|
||||||
{
|
{
|
||||||
ungrabXServer();
|
ungrabXServer();
|
||||||
return false;
|
return false;
|
||||||
|
|
|
@ -370,7 +370,7 @@ void Workspace::init()
|
||||||
XGetWindowAttributes(display(), wins[i], &attr);
|
XGetWindowAttributes(display(), wins[i], &attr);
|
||||||
if (attr.override_redirect )
|
if (attr.override_redirect )
|
||||||
{
|
{
|
||||||
if( attr.map_state != IsUnmapped && attr.c_class != InputOnly && compositing())
|
if( compositing())
|
||||||
createUnmanaged( wins[ i ] );
|
createUnmanaged( wins[ i ] );
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue