Changeset View
Changeset View
Standalone View
Standalone View
deleted.h
Show First 20 Lines • Show All 71 Lines • ▼ Show 20 Line(s) | 71 | bool isMinimized() const { | |||
---|---|---|---|---|---|
72 | return m_minimized; | 72 | return m_minimized; | ||
73 | } | 73 | } | ||
74 | bool isModal() const { | 74 | bool isModal() const { | ||
75 | return m_modal; | 75 | return m_modal; | ||
76 | } | 76 | } | ||
77 | QList<AbstractClient*> mainClients() const { | 77 | QList<AbstractClient*> mainClients() const { | ||
78 | return m_mainClients; | 78 | return m_mainClients; | ||
79 | } | 79 | } | ||
80 | bool wasTransient() const { | ||||
81 | return m_transientFor != nullptr; | ||||
82 | } | ||||
83 | Toplevel *wasTransientFor() const { | ||||
84 | return m_transientFor; | ||||
85 | } | ||||
86 | DeletedList transients() const { | ||||
87 | return m_transients; | ||||
88 | } | ||||
80 | NET::WindowType windowType(bool direct = false, int supported_types = 0) const; | 89 | NET::WindowType windowType(bool direct = false, int supported_types = 0) const; | ||
81 | bool wasClient() const { | 90 | bool wasClient() const { | ||
82 | return m_wasClient; | 91 | return m_wasClient; | ||
83 | } | 92 | } | ||
84 | double opacity() const override; | 93 | double opacity() const override; | ||
85 | QByteArray windowRole() const override; | 94 | QByteArray windowRole() const override; | ||
86 | 95 | | |||
87 | const Decoration::Renderer *decorationRenderer() const { | 96 | const Decoration::Renderer *decorationRenderer() const { | ||
Show All 18 Lines | |||||
106 | } | 115 | } | ||
107 | protected: | 116 | protected: | ||
108 | virtual void debug(QDebug& stream) const; | 117 | virtual void debug(QDebug& stream) const; | ||
109 | private Q_SLOTS: | 118 | private Q_SLOTS: | ||
110 | void mainClientClosed(KWin::Toplevel *client); | 119 | void mainClientClosed(KWin::Toplevel *client); | ||
111 | private: | 120 | private: | ||
112 | Deleted(); // use create() | 121 | Deleted(); // use create() | ||
113 | void copyToDeleted(Toplevel* c); | 122 | void copyToDeleted(Toplevel* c); | ||
123 | void addTransient(Deleted *transient); | ||||
124 | void removeTransient(Deleted *transient); | ||||
125 | void setWasTransientFor(Deleted *transientFor); | ||||
114 | virtual ~Deleted(); // deleted only using unrefWindow() | 126 | virtual ~Deleted(); // deleted only using unrefWindow() | ||
115 | int delete_refcount; | 127 | int delete_refcount; | ||
116 | double window_opacity; | 128 | double window_opacity; | ||
117 | int desk; | 129 | int desk; | ||
118 | QStringList activityList; | 130 | QStringList activityList; | ||
119 | QRect contentsRect; // for clientPos()/clientSize() | 131 | QRect contentsRect; // for clientPos()/clientSize() | ||
120 | QPoint m_contentPos; | 132 | QPoint m_contentPos; | ||
121 | QRect transparent_rect; | 133 | QRect transparent_rect; | ||
Show All 13 Lines | |||||
135 | Decoration::Renderer *m_decorationRenderer; | 147 | Decoration::Renderer *m_decorationRenderer; | ||
136 | double m_opacity; | 148 | double m_opacity; | ||
137 | NET::WindowType m_type = NET::Unknown; | 149 | NET::WindowType m_type = NET::Unknown; | ||
138 | QByteArray m_windowRole; | 150 | QByteArray m_windowRole; | ||
139 | bool m_fullscreen; | 151 | bool m_fullscreen; | ||
140 | bool m_keepAbove; | 152 | bool m_keepAbove; | ||
141 | bool m_keepBelow; | 153 | bool m_keepBelow; | ||
142 | QString m_caption; | 154 | QString m_caption; | ||
155 | Toplevel *m_transientFor = nullptr; | ||||
156 | DeletedList m_transients; | ||||
143 | }; | 157 | }; | ||
144 | 158 | | |||
145 | inline void Deleted::refWindow() | 159 | inline void Deleted::refWindow() | ||
146 | { | 160 | { | ||
147 | ++delete_refcount; | 161 | ++delete_refcount; | ||
148 | } | 162 | } | ||
149 | 163 | | |||
150 | } // namespace | 164 | } // namespace | ||
151 | 165 | | |||
152 | Q_DECLARE_METATYPE(KWin::Deleted*) | 166 | Q_DECLARE_METATYPE(KWin::Deleted*) | ||
153 | 167 | | |||
154 | #endif | 168 | #endif |