Changeset View
Changeset View
Standalone View
Standalone View
client.cpp
Show First 20 Lines • Show All 114 Lines • ▼ Show 20 Line(s) | 96 | Client::Client() | |||
---|---|---|---|---|---|
115 | , ping_timer(NULL) | 115 | , ping_timer(NULL) | ||
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(0) | 119 | , allowed_actions(0) | ||
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 | , needsSessionInteract(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) | ||
128 | { | 128 | { | ||
129 | // TODO: Do all as initialization | 129 | // TODO: Do all as initialization | ||
130 | syncRequest.counter = syncRequest.alarm = XCB_NONE; | 130 | syncRequest.counter = syncRequest.alarm = XCB_NONE; | ||
131 | syncRequest.timeout = syncRequest.failsafeTimeout = NULL; | 131 | syncRequest.timeout = syncRequest.failsafeTimeout = NULL; | ||
▲ Show 20 Lines • Show All 1189 Lines • ▼ Show 20 Line(s) | |||||
1321 | 1321 | | |||
1322 | /** | 1322 | /** | ||
1323 | * Returns the list of activities the client window is on. | 1323 | * Returns the list of activities the client window is on. | ||
1324 | * if it's on all activities, the list will be empty. | 1324 | * if it's on all activities, the list will be empty. | ||
1325 | * Don't use this, use isOnActivity() and friends (from class Toplevel) | 1325 | * Don't use this, use isOnActivity() and friends (from class Toplevel) | ||
1326 | */ | 1326 | */ | ||
1327 | QStringList Client::activities() const | 1327 | QStringList Client::activities() const | ||
1328 | { | 1328 | { | ||
1329 | if (needsSessionInteract) { | 1329 | if (sessionActivityOverride) { | ||
1330 | return QStringList(); | 1330 | return QStringList(); | ||
1331 | } | 1331 | } | ||
1332 | return activityList; | 1332 | return activityList; | ||
1333 | } | 1333 | } | ||
1334 | 1334 | | |||
1335 | /** | 1335 | /** | ||
1336 | * if @p on is true, sets on all activities. | 1336 | * if @p on is true, sets on all activities. | ||
1337 | * if it's false, sets it to only be on the current activity | 1337 | * if it's false, sets it to only be on the current activity | ||
▲ Show 20 Lines • Show All 616 Lines • ▼ Show 20 Line(s) | |||||
1954 | void Client::checkActivities() | 1954 | void Client::checkActivities() | ||
1955 | { | 1955 | { | ||
1956 | #ifdef KWIN_BUILD_ACTIVITIES | 1956 | #ifdef KWIN_BUILD_ACTIVITIES | ||
1957 | Xcb::StringProperty property = fetchActivities(); | 1957 | Xcb::StringProperty property = fetchActivities(); | ||
1958 | readActivities(property); | 1958 | readActivities(property); | ||
1959 | #endif | 1959 | #endif | ||
1960 | } | 1960 | } | ||
1961 | 1961 | | |||
1962 | void Client::setSessionInteract(bool needed) | 1962 | void Client::setSessionActivityOverride(bool needed) | ||
1963 | { | 1963 | { | ||
1964 | needsSessionInteract = needed; | 1964 | sessionActivityOverride = needed; | ||
1965 | updateActivities(false); | ||||
1965 | } | 1966 | } | ||
1966 | 1967 | | |||
1967 | QRect Client::decorationRect() const | 1968 | QRect Client::decorationRect() const | ||
1968 | { | 1969 | { | ||
1969 | return QRect(0, 0, width(), height()); | 1970 | return QRect(0, 0, width(), height()); | ||
1970 | } | 1971 | } | ||
1971 | 1972 | | |||
1972 | Xcb::Property Client::fetchFirstInTabBox() const | 1973 | Xcb::Property Client::fetchFirstInTabBox() const | ||
▲ Show 20 Lines • Show All 224 Lines • Show Last 20 Lines |