]> Dogcows Code - chaz/openbox/commitdiff
set the button windows to None when they are destroyed so we know they are no longer...
authorDana Jansens <danakj@orodu.net>
Tue, 14 May 2002 19:32:32 +0000 (19:32 +0000)
committerDana Jansens <danakj@orodu.net>
Tue, 14 May 2002 19:32:32 +0000 (19:32 +0000)
src/Window.cc

index 0e5af867f079ff1c0bbf9c886b0fcf2ba9963261..70b2ea05eb86f95bba7e272d6fd4c7f1085c481a 100644 (file)
@@ -788,14 +788,17 @@ void OpenboxWindow::positionButtons() {
   if (!hasclose && frame.close_button) {
     openbox.removeWindowSearch(frame.close_button);
     XDestroyWindow(display, frame.close_button);
+    frame.close_button = None;
   }
   if (!hasiconify && frame.iconify_button) {
     openbox.removeWindowSearch(frame.iconify_button);
     XDestroyWindow(display, frame.iconify_button);
+    frame.iconify_button = None;
   }
   if (!hasmaximize && frame.iconify_button) {
     openbox.removeWindowSearch(frame.maximize_button);
     XDestroyWindow(display, frame.maximize_button);                 
+    frame.maximize_button = None;
   }
 
   redrawLabel();
This page took 0.025957 seconds and 4 git commands to generate.