Changeset View
Changeset View
Standalone View
Standalone View
sm.cpp
Show First 20 Lines • Show All 134 Lines • ▼ Show 20 Line(s) | 134 | } else { // SMSavePhase2Full | |||
---|---|---|---|---|---|
135 | cg.writeEntry("count", count); | 135 | cg.writeEntry("count", count); | ||
136 | cg.writeEntry("active", session_active_client); | 136 | cg.writeEntry("active", session_active_client); | ||
137 | cg.writeEntry("desktop", VirtualDesktopManager::self()->current()); | 137 | cg.writeEntry("desktop", VirtualDesktopManager::self()->current()); | ||
138 | } | 138 | } | ||
139 | } | 139 | } | ||
140 | 140 | | |||
141 | void Workspace::storeClient(KConfigGroup &cg, int num, Client *c) | 141 | void Workspace::storeClient(KConfigGroup &cg, int num, Client *c) | ||
142 | { | 142 | { | ||
143 | c->setSessionInteract(false); //make sure we get the real values | 143 | c->setSessionActivityOverride(false); //make sure we get the real values | ||
144 | QString n = QString::number(num); | 144 | QString n = QString::number(num); | ||
145 | cg.writeEntry(QLatin1String("sessionId") + n, c->sessionId().constData()); | 145 | cg.writeEntry(QLatin1String("sessionId") + n, c->sessionId().constData()); | ||
146 | cg.writeEntry(QLatin1String("windowRole") + n, c->windowRole().constData()); | 146 | cg.writeEntry(QLatin1String("windowRole") + n, c->windowRole().constData()); | ||
147 | cg.writeEntry(QLatin1String("wmCommand") + n, c->wmCommand().constData()); | 147 | cg.writeEntry(QLatin1String("wmCommand") + n, c->wmCommand().constData()); | ||
148 | cg.writeEntry(QLatin1String("resourceName") + n, c->resourceName().constData()); | 148 | cg.writeEntry(QLatin1String("resourceName") + n, c->resourceName().constData()); | ||
149 | cg.writeEntry(QLatin1String("resourceClass") + n, c->resourceClass().constData()); | 149 | cg.writeEntry(QLatin1String("resourceClass") + n, c->resourceClass().constData()); | ||
150 | cg.writeEntry(QLatin1String("geometry") + n, QRect(c->calculateGravitation(true), c->clientSize())); // FRAME | 150 | cg.writeEntry(QLatin1String("geometry") + n, QRect(c->calculateGravitation(true), c->clientSize())); // FRAME | ||
151 | cg.writeEntry(QLatin1String("restore") + n, c->geometryRestore()); | 151 | cg.writeEntry(QLatin1String("restore") + n, c->geometryRestore()); | ||
▲ Show 20 Lines • Show All 362 Lines • ▼ Show 20 Line(s) | |||||
514 | { | 514 | { | ||
515 | if (conn != NULL) | 515 | if (conn != NULL) | ||
516 | IceProcessMessages(SmcGetIceConnection(conn), 0, 0); | 516 | IceProcessMessages(SmcGetIceConnection(conn), 0, 0); | ||
517 | } | 517 | } | ||
518 | 518 | | |||
519 | void Workspace::sessionSaveDone() | 519 | void Workspace::sessionSaveDone() | ||
520 | { | 520 | { | ||
521 | session_saving = false; | 521 | session_saving = false; | ||
522 | //remove sessionInteract flag from all clients | | |||
523 | foreach (Client * c, clients) { | 522 | foreach (Client * c, clients) { | ||
524 | c->setSessionInteract(false); | 523 | c->setSessionActivityOverride(false); | ||
525 | } | 524 | } | ||
526 | } | 525 | } | ||
527 | 526 | | |||
528 | } // namespace | 527 | } // namespace | ||
529 | 528 | |