set the button windows to None when they are destroyed so we know they are no longer valid windows
This commit is contained in:
parent
1b1efab489
commit
527864614b
1 changed files with 3 additions and 0 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue