Move hasStrut from Client to AbstractClient

Base implementation returns false.
icc-effect-5.14.5
Martin Gräßlin 2015-06-20 00:14:15 +02:00
parent 69d78fe8db
commit 1ccd608121
3 changed files with 8 additions and 1 deletions

View File

@ -504,4 +504,9 @@ void AbstractClient::updateMoveResize(const QPointF &currentGlobalCursor)
Q_UNUSED(currentGlobalCursor)
}
bool AbstractClient::hasStrut() const
{
return false;
}
}

View File

@ -347,6 +347,8 @@ public:
virtual QSize minSize() const;
virtual QSize maxSize() const;
virtual bool hasStrut() const;
// TODO: remove boolean trap
static bool belongToSameApplication(const AbstractClient* c1, const AbstractClient* c2, bool active_hack = false);

View File

@ -398,7 +398,7 @@ public:
void checkActiveModal();
StrutRect strutRect(StrutArea area) const;
StrutRects strutRects() const;
bool hasStrut() const;
bool hasStrut() const override;
// Tabbing functions
TabGroup* tabGroup() const override; // Returns a pointer to client_group