diff --git a/src/ywindow.cc b/src/ywindow.cc index fb32f1518..c0d25b136 100644 --- a/src/ywindow.cc +++ b/src/ywindow.cc @@ -299,7 +299,7 @@ void YWindow::readAttributes() { } Window YWindow::create() { - if (flags & wfCreated) + if (flags & (wfCreated | wfDestroyed) || fParent == nullptr) return fHandle; XSetWindowAttributes attributes = { 0, };