Paint only windows that are visible.
svn path=/branches/work/kwin_composite/; revision=610615
This commit is contained in:
parent
fb95cbf6ce
commit
d33323be67
1 changed files with 4 additions and 2 deletions
|
@ -286,8 +286,10 @@ QRegion Scene::Window::shape() const
|
||||||
|
|
||||||
bool Scene::Window::isVisible() const
|
bool Scene::Window::isVisible() const
|
||||||
{
|
{
|
||||||
return true; // TODO there may be transformations, so always true for now
|
if( Client* c = dynamic_cast< Client* >( toplevel ))
|
||||||
// TODO mapping state?
|
return c->isShown( true ) && c->isOnCurrentDesktop();
|
||||||
|
return true; // Unmanaged is always visible
|
||||||
|
// TODO there may be transformations, so ignore this for now
|
||||||
return !toplevel->geometry()
|
return !toplevel->geometry()
|
||||||
.intersect( QRect( 0, 0, displayWidth(), displayHeight()))
|
.intersect( QRect( 0, 0, displayWidth(), displayHeight()))
|
||||||
.isEmpty();
|
.isEmpty();
|
||||||
|
|
Loading…
Reference in a new issue