Changeset View
Changeset View
Standalone View
Standalone View
autotests/integration/kwin_wayland_test.cpp
Show First 20 Lines • Show All 70 Lines • ▼ Show 20 Line(s) | 69 | if (plugins.empty()) { | |||
---|---|---|---|---|---|
71 | return; | 71 | return; | ||
72 | } | 72 | } | ||
73 | initPlatform(plugins.first()); | 73 | initPlatform(plugins.first()); | ||
74 | WaylandServer::create(this); | 74 | WaylandServer::create(this); | ||
75 | } | 75 | } | ||
76 | 76 | | |||
77 | WaylandTestApplication::~WaylandTestApplication() | 77 | WaylandTestApplication::~WaylandTestApplication() | ||
78 | { | 78 | { | ||
79 | setTerminating(); | ||||
79 | kwinApp()->platform()->setOutputsEnabled(false); | 80 | kwinApp()->platform()->setOutputsEnabled(false); | ||
80 | // need to unload all effects prior to destroying X connection as they might do X calls | 81 | // need to unload all effects prior to destroying X connection as they might do X calls | ||
81 | // also before destroy Workspace, as effects might call into Workspace | 82 | // also before destroy Workspace, as effects might call into Workspace | ||
82 | if (effects) { | 83 | if (effects) { | ||
83 | static_cast<EffectsHandlerImpl*>(effects)->unloadAllEffects(); | 84 | static_cast<EffectsHandlerImpl*>(effects)->unloadAllEffects(); | ||
84 | } | 85 | } | ||
85 | destroyWorkspace(); | 86 | destroyWorkspace(); | ||
86 | waylandServer()->dispatch(); | 87 | waylandServer()->dispatch(); | ||
▲ Show 20 Lines • Show All 228 Lines • Show Last 20 Lines |