diff --git a/abstract_client.h b/abstract_client.h index 062a589b7c..00dd1a0185 100644 --- a/abstract_client.h +++ b/abstract_client.h @@ -525,6 +525,9 @@ protected: } QRect electricBorderMaximizeGeometry(QPoint pos, int desktop); + // geometry handling + void checkOffscreenPosition(QRect *geom, const QRect &screenArea); + private: void handlePaletteChange(); QSharedPointer m_tabBoxClient; diff --git a/client.h b/client.h index 3d36075b7a..d0b864f413 100644 --- a/client.h +++ b/client.h @@ -635,8 +635,6 @@ private: xcb_timestamp_t readUserCreationTime() const; void startupIdChanged(); - void checkOffscreenPosition (QRect* geom, const QRect& screenArea); - void updateInputWindow(); bool tabTo(Client *other, bool behind, bool activate); diff --git a/geometry.cpp b/geometry.cpp index bfe69358e8..73e4a562cf 100644 --- a/geometry.cpp +++ b/geometry.cpp @@ -1254,7 +1254,7 @@ void Client::checkWorkspacePosition(QRect oldGeometry, int oldDesktop, QRect old setGeometry(newGeom); } -void Client::checkOffscreenPosition(QRect* geom, const QRect& screenArea) +void AbstractClient::checkOffscreenPosition(QRect* geom, const QRect& screenArea) { if (geom->left() > screenArea.right()) { geom->moveLeft(screenArea.right() - screenArea.width()/4);