Destroy Workspace after unloading all effects
CI system shows that on tear down an effect might call into Workspace after it's destroyed. Unloading all effects prior to deleting Workspace should(TM) fix that. Unfortunately I'm not able to reproduce the problem locally, so build.kde.org needs to verify.
This commit is contained in:
parent
e64450c807
commit
e614789583
1 changed files with 2 additions and 2 deletions
|
@ -86,12 +86,12 @@ ApplicationWayland::~ApplicationWayland()
|
|||
}
|
||||
|
||||
kwinApp()->platform()->setOutputsEnabled(false);
|
||||
destroyWorkspace();
|
||||
waylandServer()->dispatch();
|
||||
// need to unload all effects prior to destroying X connection as they might do X calls
|
||||
if (effects) {
|
||||
static_cast<EffectsHandlerImpl*>(effects)->unloadAllEffects();
|
||||
}
|
||||
destroyWorkspace();
|
||||
waylandServer()->dispatch();
|
||||
disconnect(m_xwaylandFailConnection);
|
||||
if (x11Connection()) {
|
||||
Xcb::setInputFocus(XCB_INPUT_FOCUS_POINTER_ROOT);
|
||||
|
|
Loading…
Reference in a new issue