Changeset View
Changeset View
Standalone View
Standalone View
client.cpp
Show First 20 Lines • Show All 698 Lines • ▼ Show 20 Line(s) | |||||
699 | void Client::hideClient(bool hide) | 699 | void Client::hideClient(bool hide) | ||
700 | { | 700 | { | ||
701 | if (hidden == hide) | 701 | if (hidden == hide) | ||
702 | return; | 702 | return; | ||
703 | hidden = hide; | 703 | hidden = hide; | ||
704 | updateVisibility(); | 704 | updateVisibility(); | ||
705 | } | 705 | } | ||
706 | 706 | | |||
707 | bool Client::setupCompositing() | ||||
708 | { | ||||
709 | if (!Toplevel::setupCompositing()){ | ||||
710 | return false; | ||||
711 | } | ||||
712 | updateVisibility(); // for internalKeep() | ||||
713 | return true; | ||||
714 | } | ||||
715 | | ||||
716 | void Client::finishCompositing(ReleaseReason releaseReason) | ||||
717 | { | ||||
718 | Toplevel::finishCompositing(releaseReason); | ||||
719 | updateVisibility(); | ||||
720 | // for safety in case KWin is just resizing the window | ||||
721 | resetHaveResizeEffect(); | ||||
722 | } | ||||
723 | | ||||
707 | /** | 724 | /** | ||
708 | * Returns whether the window is minimizable or not | 725 | * Returns whether the window is minimizable or not | ||
709 | **/ | 726 | **/ | ||
710 | bool Client::isMinimizable() const | 727 | bool Client::isMinimizable() const | ||
711 | { | 728 | { | ||
712 | if (isSpecialWindow() && !isTransient()) | 729 | if (isSpecialWindow() && !isTransient()) | ||
713 | return false; | 730 | return false; | ||
714 | if (!rules()->checkMinimize(true)) | 731 | if (!rules()->checkMinimize(true)) | ||
▲ Show 20 Lines • Show All 1426 Lines • Show Last 20 Lines |