diff options
| author | Dana Jansens <danakj@orodu.net> | 2002-05-14 19:32:32 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2002-05-14 19:32:32 +0000 |
| commit | 527864614bbbadcfd5f454e7dd1781d343881e7d (patch) | |
| tree | 815cf244c9663b240f6524314a6efb0ac22a038e /src/Window.cc | |
| parent | 1b1efab489353734f0047f97fe5fef7f96d0ee68 (diff) | |
set the button windows to None when they are destroyed so we know they are no longer valid windows
Diffstat (limited to 'src/Window.cc')
| -rw-r--r-- | src/Window.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Window.cc b/src/Window.cc index 0e5af867..70b2ea05 100644 --- a/src/Window.cc +++ b/src/Window.cc @@ -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(); |
