Changeset View
Changeset View
Standalone View
Standalone View
client.cpp
Show First 20 Lines • Show All 110 Lines • ▼ Show 20 Line(s) | 97 | Client::Client() | |||
---|---|---|---|---|---|
111 | , blocks_compositing(false) | 111 | , blocks_compositing(false) | ||
112 | , shadeHoverTimer(nullptr) | 112 | , shadeHoverTimer(nullptr) | ||
113 | , m_colormap(XCB_COLORMAP_NONE) | 113 | , m_colormap(XCB_COLORMAP_NONE) | ||
114 | , in_group(nullptr) | 114 | , in_group(nullptr) | ||
115 | , ping_timer(nullptr) | 115 | , ping_timer(nullptr) | ||
116 | , m_killHelperPID(0) | 116 | , m_killHelperPID(0) | ||
117 | , m_pingTimestamp(XCB_TIME_CURRENT_TIME) | 117 | , m_pingTimestamp(XCB_TIME_CURRENT_TIME) | ||
118 | , m_userTime(XCB_TIME_CURRENT_TIME) // Not known yet | 118 | , m_userTime(XCB_TIME_CURRENT_TIME) // Not known yet | ||
119 | , allowed_actions(nullptr) | 119 | , allowed_actions() | ||
120 | , shade_geometry_change(false) | 120 | , shade_geometry_change(false) | ||
121 | , sm_stacking_order(-1) | 121 | , sm_stacking_order(-1) | ||
122 | , activitiesDefined(false) | 122 | , activitiesDefined(false) | ||
123 | , sessionActivityOverride(false) | 123 | , sessionActivityOverride(false) | ||
124 | , needsXWindowMove(false) | 124 | , needsXWindowMove(false) | ||
125 | , m_decoInputExtent() | 125 | , m_decoInputExtent() | ||
126 | , m_focusOutTimer(nullptr) | 126 | , m_focusOutTimer(nullptr) | ||
127 | , m_clientSideDecorated(false) | 127 | , m_clientSideDecorated(false) | ||
▲ Show 20 Lines • Show All 1635 Lines • ▼ Show 20 Line(s) | 1758 | { | |||
1763 | } | 1763 | } | ||
1764 | } | 1764 | } | ||
1765 | 1765 | | |||
1766 | void Client::updateAllowedActions(bool force) | 1766 | void Client::updateAllowedActions(bool force) | ||
1767 | { | 1767 | { | ||
1768 | if (!isManaged() && !force) | 1768 | if (!isManaged() && !force) | ||
1769 | return; | 1769 | return; | ||
1770 | NET::Actions old_allowed_actions = NET::Actions(allowed_actions); | 1770 | NET::Actions old_allowed_actions = NET::Actions(allowed_actions); | ||
1771 | allowed_actions = nullptr; | 1771 | allowed_actions = NET::Actions(); | ||
1772 | if (isMovable()) | 1772 | if (isMovable()) | ||
1773 | allowed_actions |= NET::ActionMove; | 1773 | allowed_actions |= NET::ActionMove; | ||
1774 | if (isResizable()) | 1774 | if (isResizable()) | ||
1775 | allowed_actions |= NET::ActionResize; | 1775 | allowed_actions |= NET::ActionResize; | ||
1776 | if (isMinimizable()) | 1776 | if (isMinimizable()) | ||
1777 | allowed_actions |= NET::ActionMinimize; | 1777 | allowed_actions |= NET::ActionMinimize; | ||
1778 | if (isShadeable()) | 1778 | if (isShadeable()) | ||
1779 | allowed_actions |= NET::ActionShade; | 1779 | allowed_actions |= NET::ActionShade; | ||
▲ Show 20 Lines • Show All 350 Lines • Show Last 20 Lines |