Commit 78e9a56c authored by Martin Flöser's avatar Martin Flöser

Move checkOffscreenPosition from Client to AbstractClient

parent 53b87dbb
......@@ -525,6 +525,9 @@ protected:
QRect electricBorderMaximizeGeometry(QPoint pos, int desktop);
// geometry handling
void checkOffscreenPosition(QRect *geom, const QRect &screenArea);
void handlePaletteChange();
QSharedPointer<TabBox::TabBoxClientImpl> m_tabBoxClient;
......@@ -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);
......@@ -1254,7 +1254,7 @@ void Client::checkWorkspacePosition(QRect oldGeometry, int oldDesktop, QRect old
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);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment