Simplify Window::setReadyForPainting()

The windowShown() signal can be emitted regardless of compositing
status. Not sure why this if statement exists, perhaps a premature
optimization.
This commit is contained in:
Vlad Zahorodnii 2023-09-20 09:26:20 +03:00
parent a702bba88c
commit b7f55534bc

View file

@ -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);
}
}