Move scene->windowAdded() to Toplevel's setupCompositing() function
Moved the function call of scene->windowAdded() to setupComposition() of Toplevel. The function calls from Workspace were removed, since windowAdded() is called by setupCompositing() now, which is called anyway. REVIEW: 102047
This commit is contained in:
parent
6df618e94b
commit
04fd63b201
2 changed files with 1 additions and 11 deletions
|
@ -182,12 +182,6 @@ void Workspace::setupCompositing()
|
|||
c->setupCompositing();
|
||||
foreach (Unmanaged * c, unmanaged)
|
||||
c->setupCompositing();
|
||||
foreach (Client * c, clients)
|
||||
scene->windowAdded(c);
|
||||
foreach (Client * c, desktops)
|
||||
scene->windowAdded(c);
|
||||
foreach (Unmanaged * c, unmanaged)
|
||||
scene->windowAdded(c);
|
||||
discardPopup(); // force re-creation of the Alt+F3 popup (opacity option)
|
||||
#else
|
||||
kDebug(1212) << "Compositing was not available at compile time";
|
||||
|
@ -541,6 +535,7 @@ void Toplevel::setupCompositing()
|
|||
effect_window->setWindow(this);
|
||||
unredirect = false;
|
||||
workspace()->checkUnredirect(true);
|
||||
scene->windowAdded(this);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
|
@ -565,9 +565,6 @@ Client* Workspace::createClient(Window w, bool is_mapped)
|
|||
tilingLayouts.resize(numberOfDesktops() + 1);
|
||||
|
||||
createTile(c);
|
||||
|
||||
if (scene)
|
||||
scene->windowAdded(c);
|
||||
return c;
|
||||
}
|
||||
|
||||
|
@ -581,8 +578,6 @@ Unmanaged* Workspace::createUnmanaged(Window w)
|
|||
return NULL;
|
||||
}
|
||||
addUnmanaged(c, Allowed);
|
||||
if (scene)
|
||||
scene->windowAdded(c);
|
||||
emit unmanagedAdded(c);
|
||||
return c;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue