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:
parent
a702bba88c
commit
b7f55534bc
1 changed files with 1 additions and 3 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue