Some debug info while I test avoidance of side-hugging windows
svn path=/trunk/kdebase/kwin/; revision=47701
This commit is contained in:
parent
ef63e498cc
commit
accc728575
1 changed files with 12 additions and 0 deletions
|
@ -250,6 +250,8 @@ void Workspace::init()
|
||||||
inf.row = 0;
|
inf.row = 0;
|
||||||
cci.append(inf);
|
cci.append(inf);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
updateClientArea();
|
||||||
}
|
}
|
||||||
|
|
||||||
Workspace::~Workspace()
|
Workspace::~Workspace()
|
||||||
|
@ -2187,6 +2189,8 @@ SessionInfo* Workspace::takeSessionInfo( Client* c )
|
||||||
void
|
void
|
||||||
Workspace::updateClientArea()
|
Workspace::updateClientArea()
|
||||||
{
|
{
|
||||||
|
qDebug("KWin: Updating client area");
|
||||||
|
|
||||||
clientArea_ = geometry();
|
clientArea_ = geometry();
|
||||||
|
|
||||||
for (ClientList::ConstIterator it(clients.begin()); it != clients.end(); ++it)
|
for (ClientList::ConstIterator it(clients.begin()); it != clients.end(); ++it)
|
||||||
|
@ -2196,24 +2200,32 @@ Workspace::updateClientArea()
|
||||||
switch (AnchorEdge((*it)->anchorEdge())) {
|
switch (AnchorEdge((*it)->anchorEdge())) {
|
||||||
|
|
||||||
case AnchorNorth:
|
case AnchorNorth:
|
||||||
|
qDebug("KWin: Ignoring a client at edge N");
|
||||||
clientArea_
|
clientArea_
|
||||||
.setTop(QMAX(clientArea_.top(), (*it)->geometry().bottom()));
|
.setTop(QMAX(clientArea_.top(), (*it)->geometry().bottom()));
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case AnchorSouth:
|
case AnchorSouth:
|
||||||
|
qDebug("KWin: Ignoring a client at edge S");
|
||||||
clientArea_
|
clientArea_
|
||||||
.setBottom(QMIN(clientArea_.bottom(), (*it)->geometry().top()));
|
.setBottom(QMIN(clientArea_.bottom(), (*it)->geometry().top()));
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case AnchorEast:
|
case AnchorEast:
|
||||||
|
qDebug("KWin: Ignoring a client at edge E");
|
||||||
clientArea_
|
clientArea_
|
||||||
.setRight(QMIN(clientArea_.right(), (*it)->geometry().left()));
|
.setRight(QMIN(clientArea_.right(), (*it)->geometry().left()));
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case AnchorWest:
|
case AnchorWest:
|
||||||
|
qDebug("KWin: Ignoring a client at edge W");
|
||||||
clientArea_
|
clientArea_
|
||||||
.setLeft(QMAX(clientArea_.left(), (*it)->geometry().right()));
|
.setLeft(QMAX(clientArea_.left(), (*it)->geometry().right()));
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
default:
|
||||||
|
qDebug("KWin: Trying to ignore a client, but don't know which edge");
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue