]> Dogcows Code - chaz/openbox/blobdiff - src/Windowmenu.cc
fix bug where destroying the wrong windows in BlackboxWindow::positionButtons.
[chaz/openbox] / src / Windowmenu.cc
index f274a047e3cc38e121503bd305154b48d29dac3a..7de61dbdd2bc3a59e91a8b508a03684a10083dc2 100644 (file)
@@ -90,6 +90,9 @@ void Windowmenu::show(void) {
 
 
 void Windowmenu::itemSelected(int button, unsigned int index) {
+  if (button != 1)
+    return;
+  
   BasemenuItem *item = find(index);
 
   hide();
@@ -103,7 +106,7 @@ void Windowmenu::itemSelected(int button, unsigned int index) {
     break;
 
   case BScreen::WindowMaximize:
-    window->maximize(button);
+    window->maximize(1);        // full maximize
     break;
 
   case BScreen::WindowClose:
This page took 0.023709 seconds and 4 git commands to generate.