Move electricBorderMaximizeGeometry from Client to AbstractClient
As it's not used outside of Client the method is turned from public to protected.
This commit is contained in:
parent
32fbbc90bc
commit
226a099366
3 changed files with 2 additions and 2 deletions
|
@ -519,6 +519,7 @@ protected:
|
|||
QuickTileMode electricBorderMode() const {
|
||||
return m_electricMode;
|
||||
}
|
||||
QRect electricBorderMaximizeGeometry(QPoint pos, int desktop);
|
||||
|
||||
private:
|
||||
void handlePaletteChange();
|
||||
|
|
1
client.h
1
client.h
|
@ -295,7 +295,6 @@ public:
|
|||
void resizeWithChecks(const QSize& s, xcb_gravity_t gravity, ForceGeometry_t force = NormalGeometrySet);
|
||||
void setElectricBorderMaximizing(bool maximizing);
|
||||
bool isElectricBorderMaximizing() const;
|
||||
QRect electricBorderMaximizeGeometry(QPoint pos, int desktop);
|
||||
QSize sizeForClientSize(const QSize&, Sizemode mode = SizemodeAny, bool noframe = false) const;
|
||||
|
||||
/** Set the quick tile mode ("snap") of this window.
|
||||
|
|
|
@ -3204,7 +3204,7 @@ void Client::setElectricBorderMaximizing(bool maximizing)
|
|||
elevate(maximizing);
|
||||
}
|
||||
|
||||
QRect Client::electricBorderMaximizeGeometry(QPoint pos, int desktop)
|
||||
QRect AbstractClient::electricBorderMaximizeGeometry(QPoint pos, int desktop)
|
||||
{
|
||||
if (electricBorderMode() == QuickTileMaximize) {
|
||||
if (maximizeMode() == MaximizeFull)
|
||||
|
|
Loading…
Reference in a new issue