From: Dana Jansens Date: Fri, 3 May 2002 22:02:51 +0000 (+0000) Subject: stop moving a window if it is maximized X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=38de48bd8b054db7ba95fcdb43e474a0ba23b78f;p=chaz%2Fopenbox stop moving a window if it is maximized --- diff --git a/src/Window.cc b/src/Window.cc index 431d3167..48052658 100644 --- a/src/Window.cc +++ b/src/Window.cc @@ -1527,6 +1527,9 @@ void OpenboxWindow::withdraw(void) { void OpenboxWindow::maximize(unsigned int button) { + if (flags.moving) + endMove(); + // handle case where menu is open then the max button is used instead if (windowmenu && windowmenu->isVisible()) windowmenu->hide();