]> Dogcows Code - chaz/openbox/commitdiff
stop moving a window if it is maximized
authorDana Jansens <danakj@orodu.net>
Fri, 3 May 2002 22:02:51 +0000 (22:02 +0000)
committerDana Jansens <danakj@orodu.net>
Fri, 3 May 2002 22:02:51 +0000 (22:02 +0000)
src/Window.cc

index 431d3167f0ad72a0a79453820fea02a159b5d450..480526586a73557119de05b38d23b05e7ade9c55 100644 (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();
 
This page took 0.023331 seconds and 4 git commands to generate.