diff --git a/scene.cpp b/scene.cpp index 6ed85dc1ec..37f2b84471 100644 --- a/scene.cpp +++ b/scene.cpp @@ -850,7 +850,7 @@ WindowPixmap::~WindowPixmap() void WindowPixmap::create() { - if (isValid()) { + if (isValid() || toplevel()->isDeleted()) { return; } XServerGrabber grabber();