]> Dogcows Code - chaz/openbox/blobdiff - src/Window.cc
better gcc3 compat. using ostrstream again. and using namespace std;
[chaz/openbox] / src / Window.cc
index 431d3167f0ad72a0a79453820fea02a159b5d450..5a28d23254053874f2bb3a565d2de027ed4c4458 100644 (file)
@@ -56,6 +56,9 @@
 #endif // SLIT
 #include "Util.h"
 
+#include <iostream>
+using namespace std;
+
 /*
  * Initializes the class with default values/the window's set initial values.
  */
@@ -1390,7 +1393,7 @@ Bool OpenboxWindow::setInputFocus(void) {
       XSetInputFocus(display, screen->getRootWindow(),
                     RevertToNone, CurrentTime);
 
-    openbox.setFocusedWindow(this);
+    openbox.focusWindow(this);
 
     if (flags.send_focus_message) {
       XEvent ce;
@@ -1527,6 +1530,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.023126 seconds and 4 git commands to generate.