Changeset View
Changeset View
Standalone View
Standalone View
layers.cpp
Show First 20 Lines • Show All 813 Lines • ▼ Show 20 Line(s) | 813 | { | |||
---|---|---|---|---|---|
814 | foreach (const AbstractClient *transient, transients) { | 814 | foreach (const AbstractClient *transient, transients) { | ||
815 | if (transient == topmost || rec_checkTransientOnTop(transient->transients(), topmost)) { | 815 | if (transient == topmost || rec_checkTransientOnTop(transient->transients(), topmost)) { | ||
816 | return true; | 816 | return true; | ||
817 | } | 817 | } | ||
818 | } | 818 | } | ||
819 | return false; | 819 | return false; | ||
820 | } | 820 | } | ||
821 | 821 | | |||
822 | bool Client::isActiveFullScreen() const | | |||
823 | { | | |||
824 | if (AbstractClient::isActiveFullScreen()) { | | |||
825 | return true; | | |||
826 | } | | |||
827 | if (!isFullScreen()) | | |||
828 | return false; | | |||
829 | | ||||
830 | const Client* ac = dynamic_cast<Client*>(workspace()->mostRecentlyActivatedClient()); // instead of activeClient() - avoids flicker | | |||
831 | // according to NETWM spec implementation notes suggests | | |||
832 | // "focused windows having state _NET_WM_STATE_FULLSCREEN" to be on the highest layer. | | |||
833 | // we'll also take the screen into account | | |||
834 | return ac && (this->group() == ac->group()); | | |||
835 | } | | |||
836 | | ||||
837 | } // namespace | 822 | } // namespace |