Changeset View
Changeset View
Standalone View
Standalone View
client.cpp
Show First 20 Lines • Show All 229 Lines • ▼ Show 20 Line(s) | 217 | { | |||
---|---|---|---|---|---|
230 | StackingUpdatesBlocker blocker(workspace()); | 230 | StackingUpdatesBlocker blocker(workspace()); | ||
231 | if (isMoveResize()) | 231 | if (isMoveResize()) | ||
232 | leaveMoveResize(); | 232 | leaveMoveResize(); | ||
233 | finishWindowRules(); | 233 | finishWindowRules(); | ||
234 | blockGeometryUpdates(); | 234 | blockGeometryUpdates(); | ||
235 | if (isOnCurrentDesktop() && isShown(true)) | 235 | if (isOnCurrentDesktop() && isShown(true)) | ||
236 | addWorkspaceRepaint(visibleRect()); | 236 | addWorkspaceRepaint(visibleRect()); | ||
237 | // Grab X during the release to make removing of properties, setting to withdrawn state | 237 | // Grab X during the release to make removing of properties, setting to withdrawn state | ||
238 | // and repareting to root an atomic operation (http://lists.kde.org/?l=kde-devel&m=116448102901184&w=2) | 238 | // and repareting to root an atomic operation (https://lists.kde.org/?l=kde-devel&m=116448102901184&w=2) | ||
239 | grabXServer(); | 239 | grabXServer(); | ||
240 | exportMappingState(WithdrawnState); | 240 | exportMappingState(WithdrawnState); | ||
241 | setModal(false); // Otherwise its mainwindow wouldn't get focus | 241 | setModal(false); // Otherwise its mainwindow wouldn't get focus | ||
242 | hidden = true; // So that it's not considered visible anymore (can't use hideClient(), it would set flags) | 242 | hidden = true; // So that it's not considered visible anymore (can't use hideClient(), it would set flags) | ||
243 | if (!on_shutdown) | 243 | if (!on_shutdown) | ||
244 | workspace()->clientHidden(this); | 244 | workspace()->clientHidden(this); | ||
245 | m_frame.unmap(); // Destroying decoration would cause ugly visual effect | 245 | m_frame.unmap(); // Destroying decoration would cause ugly visual effect | ||
246 | destroyDecoration(); | 246 | destroyDecoration(); | ||
▲ Show 20 Lines • Show All 1206 Lines • ▼ Show 20 Line(s) | |||||
1453 | { | 1453 | { | ||
1454 | if (info->name() && info->name()[0] != '\0') | 1454 | if (info->name() && info->name()[0] != '\0') | ||
1455 | return QString::fromUtf8(info->name()).simplified(); | 1455 | return QString::fromUtf8(info->name()).simplified(); | ||
1456 | else { | 1456 | else { | ||
1457 | return readNameProperty(window(), XCB_ATOM_WM_NAME); | 1457 | return readNameProperty(window(), XCB_ATOM_WM_NAME); | ||
1458 | } | 1458 | } | ||
1459 | } | 1459 | } | ||
1460 | 1460 | | |||
1461 | // The list is taken from http://www.unicode.org/reports/tr9/ (#154840) | 1461 | // The list is taken from https://www.unicode.org/reports/tr9/ (#154840) | ||
1462 | static const QChar LRM(0x200E); | 1462 | static const QChar LRM(0x200E); | ||
1463 | 1463 | | |||
1464 | void Client::setCaption(const QString& _s, bool force) | 1464 | void Client::setCaption(const QString& _s, bool force) | ||
1465 | { | 1465 | { | ||
1466 | if (!force && _s == cap_normal) | 1466 | if (!force && _s == cap_normal) | ||
1467 | return; | 1467 | return; | ||
1468 | QString s(_s); | 1468 | QString s(_s); | ||
1469 | for (int i = 0; i < s.length(); ++i) | 1469 | for (int i = 0; i < s.length(); ++i) | ||
▲ Show 20 Lines • Show All 641 Lines • Show Last 20 Lines |