Changeset View
Changeset View
Standalone View
Standalone View
deleted.h
Show First 20 Lines • Show All 166 Lines • ▼ Show 20 Line(s) | 47 | public: | |||
---|---|---|---|---|---|
167 | * Returns the list of transients. | 167 | * Returns the list of transients. | ||
168 | * | 168 | * | ||
169 | * Because the window is Deleted, it can have only Deleted child transients. | 169 | * Because the window is Deleted, it can have only Deleted child transients. | ||
170 | **/ | 170 | **/ | ||
171 | DeletedList transients() const { | 171 | DeletedList transients() const { | ||
172 | return m_transients; | 172 | return m_transients; | ||
173 | } | 173 | } | ||
174 | 174 | | |||
175 | /** | ||||
176 | * Returns whether the client was a popup. | ||||
177 | * | ||||
178 | * @returns @c true if the client was a popup, @c false otherwise. | ||||
179 | **/ | ||||
180 | bool isPopupWindow() const override { | ||||
181 | return m_wasPopupWindow; | ||||
182 | } | ||||
183 | | ||||
175 | protected: | 184 | protected: | ||
176 | virtual void debug(QDebug& stream) const; | 185 | virtual void debug(QDebug& stream) const; | ||
177 | private Q_SLOTS: | 186 | private Q_SLOTS: | ||
178 | void mainClientClosed(KWin::Toplevel *client); | 187 | void mainClientClosed(KWin::Toplevel *client); | ||
179 | void transientForClosed(Toplevel *toplevel, Deleted *deleted); | 188 | void transientForClosed(Toplevel *toplevel, Deleted *deleted); | ||
180 | 189 | | |||
181 | private: | 190 | private: | ||
182 | Deleted(); // use create() | 191 | Deleted(); // use create() | ||
Show All 35 Lines | |||||
218 | bool m_keepBelow; | 227 | bool m_keepBelow; | ||
219 | QString m_caption; | 228 | QString m_caption; | ||
220 | bool m_wasActive; | 229 | bool m_wasActive; | ||
221 | bool m_wasX11Client; | 230 | bool m_wasX11Client; | ||
222 | bool m_wasWaylandClient; | 231 | bool m_wasWaylandClient; | ||
223 | bool m_wasGroupTransient; | 232 | bool m_wasGroupTransient; | ||
224 | ToplevelList m_transientFor; | 233 | ToplevelList m_transientFor; | ||
225 | DeletedList m_transients; | 234 | DeletedList m_transients; | ||
235 | bool m_wasPopupWindow; | ||||
226 | }; | 236 | }; | ||
227 | 237 | | |||
228 | inline void Deleted::refWindow() | 238 | inline void Deleted::refWindow() | ||
229 | { | 239 | { | ||
230 | ++delete_refcount; | 240 | ++delete_refcount; | ||
231 | } | 241 | } | ||
232 | 242 | | |||
233 | } // namespace | 243 | } // namespace | ||
234 | 244 | | |||
235 | Q_DECLARE_METATYPE(KWin::Deleted*) | 245 | Q_DECLARE_METATYPE(KWin::Deleted*) | ||
236 | 246 | | |||
237 | #endif | 247 | #endif |