From 20fc06997f74a3fc799b87ff9b0c69b3fa246997 Mon Sep 17 00:00:00 2001 From: Bert Gijsbers Date: Sat, 15 Jun 2024 18:59:22 +0200 Subject: [PATCH] Don't create Window handle when destroyed or without a parent. --- src/ywindow.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, };