Changeset View
Changeset View
Standalone View
Standalone View
deleted.h
Show First 20 Lines • Show All 156 Lines • ▼ Show 20 Line(s) | 156 | bool wasTransientFor(const Toplevel *toplevel) const { | |||
---|---|---|---|---|---|
157 | return m_transientFor.contains(const_cast<Toplevel *>(toplevel)); | 157 | return m_transientFor.contains(const_cast<Toplevel *>(toplevel)); | ||
158 | } | 158 | } | ||
159 | 159 | | |||
160 | /** | 160 | /** | ||
161 | * Returns the list of transients. | 161 | * Returns the list of transients. | ||
162 | * | 162 | * | ||
163 | * Because the window is Deleted, it can have only Deleted child transients. | 163 | * Because the window is Deleted, it can have only Deleted child transients. | ||
164 | */ | 164 | */ | ||
165 | DeletedList transients() const { | 165 | QList<Deleted *> transients() const { | ||
166 | return m_transients; | 166 | return m_transients; | ||
167 | } | 167 | } | ||
168 | 168 | | |||
169 | /** | 169 | /** | ||
170 | * Returns whether the client was a popup. | 170 | * Returns whether the client was a popup. | ||
171 | * | 171 | * | ||
172 | * @returns @c true if the client was a popup, @c false otherwise. | 172 | * @returns @c true if the client was a popup, @c false otherwise. | ||
173 | */ | 173 | */ | ||
▲ Show 20 Lines • Show All 57 Lines • ▼ Show 20 Line(s) | 194 | private: | |||
231 | bool m_fullscreen; | 231 | bool m_fullscreen; | ||
232 | bool m_keepAbove; | 232 | bool m_keepAbove; | ||
233 | bool m_keepBelow; | 233 | bool m_keepBelow; | ||
234 | QString m_caption; | 234 | QString m_caption; | ||
235 | bool m_wasActive; | 235 | bool m_wasActive; | ||
236 | bool m_wasX11Client; | 236 | bool m_wasX11Client; | ||
237 | bool m_wasWaylandClient; | 237 | bool m_wasWaylandClient; | ||
238 | bool m_wasGroupTransient; | 238 | bool m_wasGroupTransient; | ||
239 | ToplevelList m_transientFor; | 239 | QList<Toplevel *> m_transientFor; | ||
240 | DeletedList m_transients; | 240 | QList<Deleted *> m_transients; | ||
241 | bool m_wasPopupWindow; | 241 | bool m_wasPopupWindow; | ||
242 | bool m_wasOutline; | 242 | bool m_wasOutline; | ||
243 | qreal m_bufferScale = 1; | 243 | qreal m_bufferScale = 1; | ||
244 | }; | 244 | }; | ||
245 | 245 | | |||
246 | inline void Deleted::refWindow() | 246 | inline void Deleted::refWindow() | ||
247 | { | 247 | { | ||
248 | ++delete_refcount; | 248 | ++delete_refcount; | ||
249 | } | 249 | } | ||
250 | 250 | | |||
251 | } // namespace | 251 | } // namespace | ||
252 | 252 | | |||
253 | Q_DECLARE_METATYPE(KWin::Deleted*) | 253 | Q_DECLARE_METATYPE(KWin::Deleted*) | ||
254 | 254 | | |||
255 | #endif | 255 | #endif |