Changeset View
Changeset View
Standalone View
Standalone View
internal_client.cpp
Show First 20 Lines • Show All 425 Lines • ▼ Show 20 Line(s) | 414 | { | |||
---|---|---|---|---|---|
426 | } | 426 | } | ||
427 | 427 | | |||
428 | if (!noBorder()) { | 428 | if (!noBorder()) { | ||
429 | createDecoration(oldClientGeometry); | 429 | createDecoration(oldClientGeometry); | ||
430 | } else { | 430 | } else { | ||
431 | destroyDecoration(); | 431 | destroyDecoration(); | ||
432 | } | 432 | } | ||
433 | 433 | | |||
434 | getShadow(); | 434 | updateShadow(); | ||
435 | 435 | | |||
436 | if (check_workspace_pos) { | 436 | if (check_workspace_pos) { | ||
437 | checkWorkspacePosition(oldFrameGeometry, -2, oldClientGeometry); | 437 | checkWorkspacePosition(oldFrameGeometry, -2, oldClientGeometry); | ||
438 | } | 438 | } | ||
439 | } | 439 | } | ||
440 | 440 | | |||
441 | void InternalClient::updateColorScheme() | 441 | void InternalClient::updateColorScheme() | ||
442 | { | 442 | { | ||
▲ Show 20 Lines • Show All 139 Lines • ▼ Show 20 Line(s) | 581 | { | |||
582 | return rect - frameMargins(); | 582 | return rect - frameMargins(); | ||
583 | } | 583 | } | ||
584 | 584 | | |||
585 | void InternalClient::createDecoration(const QRect &rect) | 585 | void InternalClient::createDecoration(const QRect &rect) | ||
586 | { | 586 | { | ||
587 | KDecoration2::Decoration *decoration = Decoration::DecorationBridge::self()->createDecoration(this); | 587 | KDecoration2::Decoration *decoration = Decoration::DecorationBridge::self()->createDecoration(this); | ||
588 | if (decoration) { | 588 | if (decoration) { | ||
589 | QMetaObject::invokeMethod(decoration, "update", Qt::QueuedConnection); | 589 | QMetaObject::invokeMethod(decoration, "update", Qt::QueuedConnection); | ||
590 | connect(decoration, &KDecoration2::Decoration::shadowChanged, this, &Toplevel::getShadow); | 590 | connect(decoration, &KDecoration2::Decoration::shadowChanged, this, &Toplevel::updateShadow); | ||
591 | connect(decoration, &KDecoration2::Decoration::bordersChanged, this, | 591 | connect(decoration, &KDecoration2::Decoration::bordersChanged, this, | ||
592 | [this]() { | 592 | [this]() { | ||
593 | GeometryUpdatesBlocker blocker(this); | 593 | GeometryUpdatesBlocker blocker(this); | ||
594 | const QRect oldGeometry = geometry(); | 594 | const QRect oldGeometry = geometry(); | ||
595 | if (!isShade()) { | 595 | if (!isShade()) { | ||
596 | checkWorkspacePosition(oldGeometry); | 596 | checkWorkspacePosition(oldGeometry); | ||
597 | } | 597 | } | ||
598 | emit geometryShapeChanged(this, oldGeometry); | 598 | emit geometryShapeChanged(this, oldGeometry); | ||
▲ Show 20 Lines • Show All 84 Lines • Show Last 20 Lines |