Changeset View
Changeset View
Standalone View
Standalone View
composite.cpp
Show First 20 Lines • Show All 150 Lines • ▼ Show 20 Line(s) | 148 | { | |||
---|---|---|---|---|---|
151 | deleteUnusedSupportProperties(); | 151 | deleteUnusedSupportProperties(); | ||
152 | delete cm_selection; | 152 | delete cm_selection; | ||
153 | s_compositor = NULL; | 153 | s_compositor = NULL; | ||
154 | } | 154 | } | ||
155 | 155 | | |||
156 | 156 | | |||
157 | void Compositor::setup() | 157 | void Compositor::setup() | ||
158 | { | 158 | { | ||
159 | if (kwinApp()->isTerminating()) { | ||||
160 | // don't setup while KWin is terminating. An event to restart might be lingering in the event queue due to graphics reset | ||||
zzag: Coding style.
Could you please also add a short explanatory comment? | |||||
161 | return; | ||||
162 | } | ||||
159 | if (hasScene()) | 163 | if (hasScene()) | ||
160 | return; | 164 | return; | ||
161 | if (m_suspended) { | 165 | if (m_suspended) { | ||
162 | QStringList reasons; | 166 | QStringList reasons; | ||
163 | if (m_suspended & UserSuspend) { | 167 | if (m_suspended & UserSuspend) { | ||
164 | reasons << QStringLiteral("Disabled by User"); | 168 | reasons << QStringLiteral("Disabled by User"); | ||
165 | } | 169 | } | ||
166 | if (m_suspended & BlockRuleSuspend) { | 170 | if (m_suspended & BlockRuleSuspend) { | ||
▲ Show 20 Lines • Show All 1045 Lines • Show Last 20 Lines |
Coding style.
Could you please also add a short explanatory comment?