stop moving a window if it is maximized

This commit is contained in:
Dana Jansens 2002-05-03 22:02:51 +00:00
parent 445e28af9a
commit 38de48bd8b

View file

@ -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();