Changeset View
Changeset View
Standalone View
Standalone View
deleted.h
Show All 38 Lines | 38 | { | |||
---|---|---|---|---|---|
39 | Q_OBJECT | 39 | Q_OBJECT | ||
40 | 40 | | |||
41 | public: | 41 | public: | ||
42 | static Deleted* create(Toplevel* c); | 42 | static Deleted* create(Toplevel* c); | ||
43 | // used by effects to keep the window around for e.g. fadeout effects when it's destroyed | 43 | // used by effects to keep the window around for e.g. fadeout effects when it's destroyed | ||
44 | void refWindow(); | 44 | void refWindow(); | ||
45 | void unrefWindow(); | 45 | void unrefWindow(); | ||
46 | void discard(); | 46 | void discard(); | ||
47 | qreal bufferScale() const override; | ||||
47 | int desktop() const override; | 48 | int desktop() const override; | ||
48 | QStringList activities() const override; | 49 | QStringList activities() const override; | ||
49 | QVector<VirtualDesktop *> desktops() const override; | 50 | QVector<VirtualDesktop *> desktops() const override; | ||
50 | QPoint clientPos() const override; | 51 | QPoint clientPos() const override; | ||
51 | QSize clientSize() const override; | 52 | QSize clientSize() const override; | ||
52 | QPoint clientContentPos() const override { | 53 | QPoint clientContentPos() const override { | ||
53 | return m_contentPos; | 54 | return m_contentPos; | ||
54 | } | 55 | } | ||
▲ Show 20 Lines • Show All 173 Lines • ▼ Show 20 Line(s) | 192 | private: | |||
228 | bool m_wasActive; | 229 | bool m_wasActive; | ||
229 | bool m_wasX11Client; | 230 | bool m_wasX11Client; | ||
230 | bool m_wasWaylandClient; | 231 | bool m_wasWaylandClient; | ||
231 | bool m_wasGroupTransient; | 232 | bool m_wasGroupTransient; | ||
232 | ToplevelList m_transientFor; | 233 | ToplevelList m_transientFor; | ||
233 | DeletedList m_transients; | 234 | DeletedList m_transients; | ||
234 | bool m_wasPopupWindow; | 235 | bool m_wasPopupWindow; | ||
235 | bool m_wasOutline; | 236 | bool m_wasOutline; | ||
237 | qreal m_bufferScale = 1; | ||||
236 | }; | 238 | }; | ||
237 | 239 | | |||
238 | inline void Deleted::refWindow() | 240 | inline void Deleted::refWindow() | ||
239 | { | 241 | { | ||
240 | ++delete_refcount; | 242 | ++delete_refcount; | ||
241 | } | 243 | } | ||
242 | 244 | | |||
243 | } // namespace | 245 | } // namespace | ||
244 | 246 | | |||
245 | Q_DECLARE_METATYPE(KWin::Deleted*) | 247 | Q_DECLARE_METATYPE(KWin::Deleted*) | ||
246 | 248 | | |||
247 | #endif | 249 | #endif |