don't activate clients (autohide) if we're dragging a window

BUG: 352267
REVIEW: 125867
This commit is contained in:
David Edmundson 2015-10-29 16:32:58 +00:00
parent b2755bcaa7
commit cd9f43af7d

View file

@ -186,12 +186,6 @@ bool Edge::canActivate(const QPoint &cursorPos, const QDateTime &triggerTime)
void Edge::handle(const QPoint &cursorPos)
{
if (m_client) {
pushCursorBack(cursorPos);
m_client->showOnScreenEdge();
unreserve();
return;
}
AbstractClient *movingClient = Workspace::self()->getMovingClient();
bool isResize = false;
if (Client *movingClientClient = qobject_cast<Client*>(movingClient))
@ -210,6 +204,14 @@ void Edge::handle(const QPoint &cursorPos)
// work as we hold a grab.
return;
}
if (m_client) {
pushCursorBack(cursorPos);
m_client->showOnScreenEdge();
unreserve();
return;
}
if (handleAction() || handleByCallback()) {
pushCursorBack(cursorPos);
return;