From b7f55534bc71e7f0d3a09cf270f607428e0a06e9 Mon Sep 17 00:00:00 2001 From: Vlad Zahorodnii Date: Wed, 20 Sep 2023 09:26:20 +0300 Subject: [PATCH] Simplify Window::setReadyForPainting() The windowShown() signal can be emitted regardless of compositing status. Not sure why this if statement exists, perhaps a premature optimization. --- src/window.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/window.cpp b/src/window.cpp index bd3bbf454c..dc01d4fee7 100644 --- a/src/window.cpp +++ b/src/window.cpp @@ -233,9 +233,7 @@ void Window::setReadyForPainting() { if (!ready_for_painting) { ready_for_painting = true; - if (Compositor::compositing()) { - Q_EMIT windowShown(this); - } + Q_EMIT windowShown(this); } }