]> Dogcows Code - chaz/openbox/blobdiff - src/Window.cc
fix bug where destroying the wrong windows in BlackboxWindow::positionButtons.
[chaz/openbox] / src / Window.cc
index a1be1f7eea5f7d0b96b540fbfd280f6649536a0e..a876e110352d5e3c38688cbf49fad1a15046cab4 100644 (file)
@@ -684,12 +684,12 @@ void BlackboxWindow::positionButtons(bool redecorate_label) {
       }
     }
   }
-  if (! hasclose)
-    destroyCloseButton();
-  if (! hasiconify)
-    destroyCloseButton();
-  if (! hasmaximize)
+  if (! hasclose && frame.close_button)
     destroyCloseButton();
+  if (! hasiconify && frame.iconify_button)
+    destroyIconifyButton();
+  if (! hasmaximize && frame.maximize_button)
+    destroyMaximizeButton();
   if (! haslabel)
     parsed += 'L';      // require that the label be in the layout
 
This page took 0.019556 seconds and 4 git commands to generate.