Changeset View
Changeset View
Standalone View
Standalone View
client.h
Show All 19 Lines | |||||
20 | *********************************************************************/ | 20 | *********************************************************************/ | ||
21 | 21 | | |||
22 | #ifndef KWIN_CLIENT_H | 22 | #ifndef KWIN_CLIENT_H | ||
23 | #define KWIN_CLIENT_H | 23 | #define KWIN_CLIENT_H | ||
24 | 24 | | |||
25 | // kwin | 25 | // kwin | ||
26 | #include "options.h" | 26 | #include "options.h" | ||
27 | #include "rules.h" | 27 | #include "rules.h" | ||
28 | #include "tabgroup.h" | | |||
29 | #include "abstract_client.h" | 28 | #include "abstract_client.h" | ||
30 | #include "xcbutils.h" | 29 | #include "xcbutils.h" | ||
31 | // Qt | 30 | // Qt | ||
32 | #include <QElapsedTimer> | 31 | #include <QElapsedTimer> | ||
33 | #include <QFlags> | 32 | #include <QFlags> | ||
34 | #include <QPointer> | 33 | #include <QPointer> | ||
35 | #include <QPixmap> | 34 | #include <QPixmap> | ||
36 | #include <QWindow> | 35 | #include <QWindow> | ||
▲ Show 20 Lines • Show All 304 Lines • ▼ Show 20 Line(s) | 327 | private: | |||
341 | void focusInEvent(xcb_focus_in_event_t *e); | 340 | void focusInEvent(xcb_focus_in_event_t *e); | ||
342 | void focusOutEvent(xcb_focus_out_event_t *e); | 341 | void focusOutEvent(xcb_focus_out_event_t *e); | ||
343 | void damageNotifyEvent() override; | 342 | void damageNotifyEvent() override; | ||
344 | 343 | | |||
345 | bool buttonPressEvent(xcb_window_t w, int button, int state, int x, int y, int x_root, int y_root, xcb_timestamp_t time = XCB_CURRENT_TIME); | 344 | bool buttonPressEvent(xcb_window_t w, int button, int state, int x, int y, int x_root, int y_root, xcb_timestamp_t time = XCB_CURRENT_TIME); | ||
346 | bool buttonReleaseEvent(xcb_window_t w, int button, int state, int x, int y, int x_root, int y_root); | 345 | bool buttonReleaseEvent(xcb_window_t w, int button, int state, int x, int y, int x_root, int y_root); | ||
347 | bool motionNotifyEvent(xcb_window_t w, int state, int x, int y, int x_root, int y_root); | 346 | bool motionNotifyEvent(xcb_window_t w, int state, int x, int y, int x_root, int y_root); | ||
348 | 347 | | |||
349 | Client* findAutogroupCandidate() const; | | |||
350 | | ||||
351 | protected: | 348 | protected: | ||
352 | void debug(QDebug& stream) const override; | 349 | void debug(QDebug& stream) const override; | ||
353 | void addDamage(const QRegion &damage) override; | 350 | void addDamage(const QRegion &damage) override; | ||
354 | bool belongsToSameApplication(const AbstractClient *other, SameApplicationChecks checks) const override; | 351 | bool belongsToSameApplication(const AbstractClient *other, SameApplicationChecks checks) const override; | ||
355 | void doSetActive() override; | 352 | void doSetActive() override; | ||
356 | void doSetKeepAbove() override; | 353 | void doSetKeepAbove() override; | ||
357 | void doSetKeepBelow() override; | 354 | void doSetKeepBelow() override; | ||
358 | void doSetDesktop(int desktop, int was_desk) override; | 355 | void doSetDesktop(int desktop, int was_desk) override; | ||
359 | void doMinimize() override; | 356 | void doMinimize() override; | ||
360 | void doSetSkipPager() override; | 357 | void doSetSkipPager() override; | ||
361 | void doSetSkipTaskbar() override; | 358 | void doSetSkipTaskbar() override; | ||
362 | void doSetSkipSwitcher() override; | 359 | void doSetSkipSwitcher() override; | ||
363 | bool belongsToDesktop() const override; | 360 | bool belongsToDesktop() const override; | ||
364 | void setGeometryRestore(const QRect &geo) override; | 361 | void setGeometryRestore(const QRect &geo) override; | ||
365 | void updateTabGroupStates(TabGroup::States states) override; | | |||
366 | void doMove(int x, int y) override; | 362 | void doMove(int x, int y) override; | ||
367 | bool doStartMoveResize() override; | 363 | bool doStartMoveResize() override; | ||
368 | void doPerformMoveResize() override; | 364 | void doPerformMoveResize() override; | ||
369 | bool isWaitingForMoveResizeSync() const override; | 365 | bool isWaitingForMoveResizeSync() const override; | ||
370 | void doResizeSync() override; | 366 | void doResizeSync() override; | ||
371 | QSize resizeIncrements() const override; | 367 | QSize resizeIncrements() const override; | ||
372 | bool acceptsFocus() const override; | 368 | bool acceptsFocus() const override; | ||
373 | 369 | | |||
▲ Show 20 Lines • Show All 217 Lines • ▼ Show 20 Line(s) | |||||
591 | 587 | | |||
592 | inline Group* Client::group() | 588 | inline Group* Client::group() | ||
593 | { | 589 | { | ||
594 | return in_group; | 590 | return in_group; | ||
595 | } | 591 | } | ||
596 | 592 | | |||
597 | inline bool Client::isShown(bool shaded_is_shown) const | 593 | inline bool Client::isShown(bool shaded_is_shown) const | ||
598 | { | 594 | { | ||
599 | return !isMinimized() && (!isShade() || shaded_is_shown) && !hidden && | 595 | return !isMinimized() && (!isShade() || shaded_is_shown) && !hidden; | ||
600 | (!tabGroup() || tabGroup()->current() == this); | | |||
601 | } | 596 | } | ||
602 | 597 | | |||
603 | inline bool Client::isHiddenInternal() const | 598 | inline bool Client::isHiddenInternal() const | ||
604 | { | 599 | { | ||
605 | return hidden; | 600 | return hidden; | ||
606 | } | 601 | } | ||
607 | 602 | | |||
608 | inline ShadeMode Client::shadeMode() const | 603 | inline ShadeMode Client::shadeMode() const | ||
▲ Show 20 Lines • Show All 91 Lines • Show Last 20 Lines |