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 177 Lines • ▼ Show 20 Line(s) | 195 | private: | |||
232 | bool m_wasActive; | 233 | bool m_wasActive; | ||
233 | bool m_wasX11Client; | 234 | bool m_wasX11Client; | ||
234 | bool m_wasWaylandClient; | 235 | bool m_wasWaylandClient; | ||
235 | bool m_wasGroupTransient; | 236 | bool m_wasGroupTransient; | ||
236 | ToplevelList m_transientFor; | 237 | ToplevelList m_transientFor; | ||
237 | DeletedList m_transients; | 238 | DeletedList m_transients; | ||
238 | bool m_wasPopupWindow; | 239 | bool m_wasPopupWindow; | ||
239 | bool m_wasOutline; | 240 | bool m_wasOutline; | ||
241 | qreal m_bufferScale = 1; | ||||
240 | }; | 242 | }; | ||
241 | 243 | | |||
242 | inline void Deleted::refWindow() | 244 | inline void Deleted::refWindow() | ||
243 | { | 245 | { | ||
244 | ++delete_refcount; | 246 | ++delete_refcount; | ||
245 | } | 247 | } | ||
246 | 248 | | |||
247 | } // namespace | 249 | } // namespace | ||
248 | 250 | | |||
249 | Q_DECLARE_METATYPE(KWin::Deleted*) | 251 | Q_DECLARE_METATYPE(KWin::Deleted*) | ||
250 | 252 | | |||
251 | #endif | 253 | #endif |