Changeset View
Changeset View
Standalone View
Standalone View
main_wayland.cpp
Show First 20 Lines • Show All 112 Lines • ▼ Show 20 Line(s) | 109 | { | |||
---|---|---|---|---|---|
113 | 113 | | |||
114 | if (kwinApp()->platform()) { | 114 | if (kwinApp()->platform()) { | ||
115 | kwinApp()->platform()->setOutputsEnabled(false); | 115 | kwinApp()->platform()->setOutputsEnabled(false); | ||
116 | } | 116 | } | ||
117 | // need to unload all effects prior to destroying X connection as they might do X calls | 117 | // need to unload all effects prior to destroying X connection as they might do X calls | ||
118 | if (effects) { | 118 | if (effects) { | ||
119 | static_cast<EffectsHandlerImpl*>(effects)->unloadAllEffects(); | 119 | static_cast<EffectsHandlerImpl*>(effects)->unloadAllEffects(); | ||
120 | } | 120 | } | ||
121 | if (m_xwayland) { | ||||
122 | // needs to be done before workspace gets destroyed | ||||
123 | m_xwayland->prepareDestroy(); | ||||
124 | } | ||||
121 | destroyWorkspace(); | 125 | destroyWorkspace(); | ||
122 | waylandServer()->dispatch(); | 126 | waylandServer()->dispatch(); | ||
123 | 127 | | |||
124 | if (QStyle *s = style()) { | 128 | if (QStyle *s = style()) { | ||
125 | s->unpolish(this); | 129 | s->unpolish(this); | ||
126 | } | 130 | } | ||
127 | // kill Xwayland before terminating its connection | 131 | // kill Xwayland before terminating its connection | ||
128 | delete m_xwayland; | 132 | delete m_xwayland; | ||
▲ Show 20 Lines • Show All 508 Lines • Show Last 20 Lines |