diff --git a/client.h b/client.h index 2677f30dc9..c35643f250 100644 --- a/client.h +++ b/client.h @@ -741,7 +741,6 @@ private: void positionGeometryTip(); void grabButton(int mod); void ungrabButton(int mod); - void resetMaximize(); void resizeDecoration(const QSize& s); void pingWindow(); diff --git a/geometry.cpp b/geometry.cpp index 225774a4ad..5c176b70ba 100644 --- a/geometry.cpp +++ b/geometry.cpp @@ -2276,24 +2276,6 @@ void Client::changeMaximize(bool vertical, bool horizontal, bool adjust) updateWindowRules(Rules::MaximizeVert|Rules::MaximizeHoriz|Rules::Position|Rules::Size); } -void Client::resetMaximize() -{ - if (max_mode == MaximizeRestore) - return; - max_mode = MaximizeRestore; - Notify::raise(Notify::UnMaximize); - info->setState(0, NET::Max); - updateAllowedActions(); - if (decoration != NULL) - decoration->borders(border_left, border_right, border_top, border_bottom); - if (isShade()) - setGeometry(QRect(pos(), sizeForClientSize(clientSize())), ForceGeometrySet); - else - setGeometry(geometry(), ForceGeometrySet); - if (decoration != NULL) - decoration->maximizeChange(); -} - bool Client::isFullScreenable(bool fullscreen_hack) const { if (!rules()->checkFullScreen(true))