Changeset View
Changeset View
Standalone View
Standalone View
x11client.h
Show First 20 Lines • Show All 181 Lines • ▼ Show 20 Line(s) | 86 | public: | |||
---|---|---|---|---|---|
182 | void takeFocus() override; | 182 | void takeFocus() override; | ||
183 | 183 | | |||
184 | void updateDecoration(bool check_workspace_pos, bool force = false) override; | 184 | void updateDecoration(bool check_workspace_pos, bool force = false) override; | ||
185 | 185 | | |||
186 | void updateShape(); | 186 | void updateShape(); | ||
187 | 187 | | |||
188 | using AbstractClient::move; | 188 | using AbstractClient::move; | ||
189 | void move(int x, int y, ForceGeometry_t force = NormalGeometrySet) override; | 189 | void move(int x, int y, ForceGeometry_t force = NormalGeometrySet) override; | ||
190 | using AbstractClient::setFrameGeometry; | 190 | void setFrameGeometry(const QRect &rect, ForceGeometry_t force = NormalGeometrySet) override; | ||
191 | void setFrameGeometry(int x, int y, int w, int h, ForceGeometry_t force = NormalGeometrySet) override; | | |||
192 | /// plainResize() simply resizes | 191 | /// plainResize() simply resizes | ||
193 | void plainResize(int w, int h, ForceGeometry_t force = NormalGeometrySet); | 192 | void plainResize(int w, int h, ForceGeometry_t force = NormalGeometrySet); | ||
194 | void plainResize(const QSize& s, ForceGeometry_t force = NormalGeometrySet); | 193 | void plainResize(const QSize& s, ForceGeometry_t force = NormalGeometrySet); | ||
195 | /// resizeWithChecks() resizes according to gravity, and checks workarea position | 194 | /// resizeWithChecks() resizes according to gravity, and checks workarea position | ||
196 | using AbstractClient::resizeWithChecks; | 195 | void resizeWithChecks(const QSize &size, ForceGeometry_t force = NormalGeometrySet) override; | ||
197 | void resizeWithChecks(int w, int h, ForceGeometry_t force = NormalGeometrySet) override; | | |||
198 | void resizeWithChecks(int w, int h, xcb_gravity_t gravity, ForceGeometry_t force = NormalGeometrySet); | 196 | void resizeWithChecks(int w, int h, xcb_gravity_t gravity, ForceGeometry_t force = NormalGeometrySet); | ||
199 | void resizeWithChecks(const QSize& s, xcb_gravity_t gravity, ForceGeometry_t force = NormalGeometrySet); | 197 | void resizeWithChecks(const QSize& s, xcb_gravity_t gravity, ForceGeometry_t force = NormalGeometrySet); | ||
200 | QSize constrainClientSize(const QSize &size, SizeMode mode = SizeModeAny) const override; | 198 | QSize constrainClientSize(const QSize &size, SizeMode mode = SizeModeAny) const override; | ||
201 | 199 | | |||
202 | bool providesContextHelp() const override; | 200 | bool providesContextHelp() const override; | ||
203 | 201 | | |||
204 | Options::WindowOperation mouseButtonToWindowOperation(Qt::MouseButtons button); | 202 | Options::WindowOperation mouseButtonToWindowOperation(Qt::MouseButtons button); | ||
205 | bool performMouseCommand(Options::MouseCommand, const QPoint& globalPos) override; | 203 | bool performMouseCommand(Options::MouseCommand, const QPoint& globalPos) override; | ||
▲ Show 20 Lines • Show All 444 Lines • ▼ Show 20 Line(s) | 647 | { | |||
650 | return m_clientGeometry.size(); | 648 | return m_clientGeometry.size(); | ||
651 | } | 649 | } | ||
652 | 650 | | |||
653 | inline void X11Client::plainResize(const QSize& s, ForceGeometry_t force) | 651 | inline void X11Client::plainResize(const QSize& s, ForceGeometry_t force) | ||
654 | { | 652 | { | ||
655 | plainResize(s.width(), s.height(), force); | 653 | plainResize(s.width(), s.height(), force); | ||
656 | } | 654 | } | ||
657 | 655 | | |||
658 | inline void X11Client::resizeWithChecks(int w, int h, AbstractClient::ForceGeometry_t force) | 656 | inline void X11Client::resizeWithChecks(const QSize &s, AbstractClient::ForceGeometry_t force) | ||
659 | { | 657 | { | ||
660 | resizeWithChecks(w, h, XCB_GRAVITY_BIT_FORGET, force); | 658 | resizeWithChecks(s.width(), s.height(), XCB_GRAVITY_BIT_FORGET, force); | ||
661 | } | 659 | } | ||
662 | 660 | | |||
663 | inline void X11Client::resizeWithChecks(const QSize& s, xcb_gravity_t gravity, ForceGeometry_t force) | 661 | inline void X11Client::resizeWithChecks(const QSize& s, xcb_gravity_t gravity, ForceGeometry_t force) | ||
664 | { | 662 | { | ||
665 | resizeWithChecks(s.width(), s.height(), gravity, force); | 663 | resizeWithChecks(s.width(), s.height(), gravity, force); | ||
666 | } | 664 | } | ||
667 | 665 | | |||
668 | inline bool X11Client::hasUserTimeSupport() const | 666 | inline bool X11Client::hasUserTimeSupport() const | ||
Show All 24 Lines |