From 38de48bd8b054db7ba95fcdb43e474a0ba23b78f Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Fri, 3 May 2002 22:02:51 +0000 Subject: [PATCH] stop moving a window if it is maximized --- src/Window.cc | 3 +++ 1 file changed, 3 insertions(+) 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(); -- 2.45.2