Changeset View
Changeset View
Standalone View
Standalone View
client.h
Show First 20 Lines • Show All 342 Lines • ▼ Show 20 Line(s) | 328 | private: | |||
---|---|---|---|---|---|
343 | virtual void damageNotifyEvent(); | 343 | virtual void damageNotifyEvent(); | ||
344 | 344 | | |||
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); | 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); | ||
346 | bool buttonReleaseEvent(xcb_window_t w, int button, int state, int x, int y, int x_root, int y_root); | 346 | 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); | 347 | bool motionNotifyEvent(xcb_window_t w, int state, int x, int y, int x_root, int y_root); | ||
348 | 348 | | |||
349 | Client* findAutogroupCandidate() const; | 349 | Client* findAutogroupCandidate() const; | ||
350 | 350 | | |||
351 | bool isFullScreenable(bool fullscreenHack) const; | | |||
352 | | ||||
353 | protected: | 351 | protected: | ||
354 | virtual void debug(QDebug& stream) const; | 352 | virtual void debug(QDebug& stream) const; | ||
355 | void addDamage(const QRegion &damage) override; | 353 | void addDamage(const QRegion &damage) override; | ||
356 | bool belongsToSameApplication(const AbstractClient *other, SameApplicationChecks checks) const override; | 354 | bool belongsToSameApplication(const AbstractClient *other, SameApplicationChecks checks) const override; | ||
357 | void doSetActive() override; | 355 | void doSetActive() override; | ||
358 | void doSetKeepAbove() override; | 356 | void doSetKeepAbove() override; | ||
359 | void doSetKeepBelow() override; | 357 | void doSetKeepBelow() override; | ||
360 | void doSetDesktop(int desktop, int was_desk) override; | 358 | void doSetDesktop(int desktop, int was_desk) override; | ||
▲ Show 20 Lines • Show All 44 Lines • ▼ Show 20 Line(s) | 378 | Q_SIGNALS: | |||
405 | void clientSideDecoratedChanged(); | 403 | void clientSideDecoratedChanged(); | ||
406 | 404 | | |||
407 | private: | 405 | private: | ||
408 | void exportMappingState(int s); // ICCCM 4.1.3.1, 4.1.4, NETWM 2.5.1 | 406 | void exportMappingState(int s); // ICCCM 4.1.3.1, 4.1.4, NETWM 2.5.1 | ||
409 | bool isManaged() const; ///< Returns false if this client is not yet managed | 407 | bool isManaged() const; ///< Returns false if this client is not yet managed | ||
410 | void updateAllowedActions(bool force = false); | 408 | void updateAllowedActions(bool force = false); | ||
411 | QRect fullscreenMonitorsArea(NETFullscreenMonitors topology) const; | 409 | QRect fullscreenMonitorsArea(NETFullscreenMonitors topology) const; | ||
412 | void changeMaximize(bool horizontal, bool vertical, bool adjust) override; | 410 | void changeMaximize(bool horizontal, bool vertical, bool adjust) override; | ||
413 | int checkFullScreenHack(const QRect& geom) const; // 0 - None, 1 - One xinerama screen, 2 - Full area | | |||
414 | void updateFullScreenHack(const QRect& geom); | | |||
415 | void getWmNormalHints(); | 411 | void getWmNormalHints(); | ||
416 | void getMotifHints(); | 412 | void getMotifHints(); | ||
417 | void getIcons(); | 413 | void getIcons(); | ||
418 | void fetchName(); | 414 | void fetchName(); | ||
419 | void fetchIconicName(); | 415 | void fetchIconicName(); | ||
420 | QString readName() const; | 416 | QString readName() const; | ||
421 | void setCaption(const QString& s, bool force = false); | 417 | void setCaption(const QString& s, bool force = false); | ||
422 | bool hasTransientInternal(const Client* c, bool indirect, ConstClientList& set) const; | 418 | bool hasTransientInternal(const Client* c, bool indirect, ConstClientList& set) const; | ||
▲ Show 20 Lines • Show All 86 Lines • ▼ Show 20 Line(s) | |||||
509 | Client *shade_below; | 505 | Client *shade_below; | ||
510 | uint deleting : 1; ///< True when doing cleanup and destroying the client | 506 | uint deleting : 1; ///< True when doing cleanup and destroying the client | ||
511 | Xcb::MotifHints m_motif; | 507 | Xcb::MotifHints m_motif; | ||
512 | uint hidden : 1; ///< Forcibly hidden by calling hide() | 508 | uint hidden : 1; ///< Forcibly hidden by calling hide() | ||
513 | uint noborder : 1; | 509 | uint noborder : 1; | ||
514 | uint app_noborder : 1; ///< App requested no border via window type, shape extension, etc. | 510 | uint app_noborder : 1; ///< App requested no border via window type, shape extension, etc. | ||
515 | uint ignore_focus_stealing : 1; ///< Don't apply focus stealing prevention to this client | 511 | uint ignore_focus_stealing : 1; ///< Don't apply focus stealing prevention to this client | ||
516 | bool blocks_compositing; | 512 | bool blocks_compositing; | ||
517 | // DON'T reorder - Saved to config files !!! | 513 | | ||
518 | enum FullScreenMode { | 514 | enum FullScreenMode { | ||
519 | FullScreenNone, | 515 | FullScreenNone, | ||
520 | FullScreenNormal, | 516 | FullScreenNormal | ||
521 | FullScreenHack ///< Non-NETWM fullscreen (noborder and size of desktop) | 517 | } m_fullscreenMode; | ||
522 | }; | 518 | | ||
523 | FullScreenMode m_fullscreenMode; | | |||
zzag: Unrelated change. | |||||
524 | MaximizeMode max_mode; | 519 | MaximizeMode max_mode; | ||
525 | QRect geom_restore; | 520 | QRect geom_restore; | ||
526 | QRect geom_fs_restore; | 521 | QRect geom_fs_restore; | ||
527 | QTimer* shadeHoverTimer; | 522 | QTimer* shadeHoverTimer; | ||
528 | xcb_colormap_t m_colormap; | 523 | xcb_colormap_t m_colormap; | ||
529 | QString cap_normal, cap_iconic, cap_suffix; | 524 | QString cap_normal, cap_iconic, cap_suffix; | ||
530 | Group* in_group; | 525 | Group* in_group; | ||
531 | QTimer* ping_timer; | 526 | QTimer* ping_timer; | ||
▲ Show 20 Lines • Show All 173 Lines • Show Last 20 Lines |
Unrelated change.