Changeset View
Changeset View
Standalone View
Standalone View
main_wayland.cpp
Show First 20 Lines • Show All 122 Lines • ▼ Show 20 Line(s) | 118 | { | |||
---|---|---|---|---|---|
123 | 123 | | |||
124 | if (kwinApp()->platform()) { | 124 | if (kwinApp()->platform()) { | ||
125 | kwinApp()->platform()->setOutputsEnabled(false); | 125 | kwinApp()->platform()->setOutputsEnabled(false); | ||
126 | } | 126 | } | ||
127 | // need to unload all effects prior to destroying X connection as they might do X calls | 127 | // need to unload all effects prior to destroying X connection as they might do X calls | ||
128 | if (effects) { | 128 | if (effects) { | ||
129 | static_cast<EffectsHandlerImpl*>(effects)->unloadAllEffects(); | 129 | static_cast<EffectsHandlerImpl*>(effects)->unloadAllEffects(); | ||
130 | } | 130 | } | ||
131 | if (m_xwayland) { | ||||
132 | // needs to be done before workspace gets destroyed | ||||
133 | m_xwayland->prepareDestroy(); | ||||
134 | } | ||||
131 | destroyWorkspace(); | 135 | destroyWorkspace(); | ||
132 | waylandServer()->dispatch(); | 136 | waylandServer()->dispatch(); | ||
133 | 137 | | |||
134 | if (QStyle *s = style()) { | 138 | if (QStyle *s = style()) { | ||
135 | s->unpolish(this); | 139 | s->unpolish(this); | ||
136 | } | 140 | } | ||
137 | // kill Xwayland before terminating its connection | 141 | // kill Xwayland before terminating its connection | ||
138 | delete m_xwayland; | 142 | delete m_xwayland; | ||
▲ Show 20 Lines • Show All 521 Lines • Show Last 20 Lines |