From accc728575f26417afb24cd2d20000134257e635 Mon Sep 17 00:00:00 2001 From: Rik Hemsley Date: Fri, 28 Apr 2000 02:52:09 +0000 Subject: [PATCH] Some debug info while I test avoidance of side-hugging windows svn path=/trunk/kdebase/kwin/; revision=47701 --- workspace.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/workspace.cpp b/workspace.cpp index 395d06aec7..b2319a8f51 100644 --- a/workspace.cpp +++ b/workspace.cpp @@ -250,6 +250,8 @@ void Workspace::init() inf.row = 0; cci.append(inf); } + + updateClientArea(); } Workspace::~Workspace() @@ -2187,6 +2189,8 @@ SessionInfo* Workspace::takeSessionInfo( Client* c ) void Workspace::updateClientArea() { + qDebug("KWin: Updating client area"); + clientArea_ = geometry(); for (ClientList::ConstIterator it(clients.begin()); it != clients.end(); ++it) @@ -2196,24 +2200,32 @@ Workspace::updateClientArea() switch (AnchorEdge((*it)->anchorEdge())) { case AnchorNorth: + qDebug("KWin: Ignoring a client at edge N"); clientArea_ .setTop(QMAX(clientArea_.top(), (*it)->geometry().bottom())); break; case AnchorSouth: + qDebug("KWin: Ignoring a client at edge S"); clientArea_ .setBottom(QMIN(clientArea_.bottom(), (*it)->geometry().top())); break; case AnchorEast: + qDebug("KWin: Ignoring a client at edge E"); clientArea_ .setRight(QMIN(clientArea_.right(), (*it)->geometry().left())); break; case AnchorWest: + qDebug("KWin: Ignoring a client at edge W"); clientArea_ .setLeft(QMAX(clientArea_.left(), (*it)->geometry().right())); break; + + default: + qDebug("KWin: Trying to ignore a client, but don't know which edge"); + break; } } }