Changeset View
Changeset View
Standalone View
Standalone View
libkwineffects/kwineffects.cpp
Show First 20 Lines • Show All 737 Lines • ▼ Show 20 Line(s) | |||||
738 | //**************************************** | 738 | //**************************************** | ||
739 | 739 | | |||
740 | EffectsHandler::EffectsHandler(CompositingType type) | 740 | EffectsHandler::EffectsHandler(CompositingType type) | ||
741 | : compositing_type(type) | 741 | : compositing_type(type) | ||
742 | { | 742 | { | ||
743 | if (compositing_type == NoCompositing) | 743 | if (compositing_type == NoCompositing) | ||
744 | return; | 744 | return; | ||
745 | KWin::effects = this; | 745 | KWin::effects = this; | ||
746 | connect(this, QOverload<int, int>::of(&EffectsHandler::desktopChanged), this, &EffectsHandler::desktopChangedCompat); | ||||
746 | } | 747 | } | ||
747 | 748 | | |||
748 | EffectsHandler::~EffectsHandler() | 749 | EffectsHandler::~EffectsHandler() | ||
749 | { | 750 | { | ||
750 | // All effects should already be unloaded by Impl dtor | 751 | // All effects should already be unloaded by Impl dtor | ||
751 | assert(loaded_effects.count() == 0); | 752 | assert(loaded_effects.count() == 0); | ||
752 | } | 753 | } | ||
753 | 754 | | |||
754 | CompositingType EffectsHandler::compositingType() const | 755 | CompositingType EffectsHandler::compositingType() const | ||
755 | { | 756 | { | ||
756 | return compositing_type; | 757 | return compositing_type; | ||
757 | } | 758 | } | ||
758 | 759 | | |||
759 | bool EffectsHandler::isOpenGLCompositing() const | 760 | bool EffectsHandler::isOpenGLCompositing() const | ||
760 | { | 761 | { | ||
761 | return compositing_type & OpenGLCompositing; | 762 | return compositing_type & OpenGLCompositing; | ||
762 | } | 763 | } | ||
763 | 764 | | |||
765 | QList<QObject*> EffectsHandler::stackingOrderProxy() const | ||||
766 | { | ||||
767 | QList<QObject*> list; | ||||
768 | const auto &sourceList(stackingOrder()); | ||||
769 | list.reserve(sourceList.size()); | ||||
770 | for(auto w: stackingOrder()) { | ||||
zzag: sourceList? | |||||
771 | list.append(w); | ||||
772 | } | ||||
773 | return list; | ||||
774 | } | ||||
775 | | ||||
776 | | ||||
764 | EffectsHandler* effects = nullptr; | 777 | EffectsHandler* effects = nullptr; | ||
765 | 778 | | |||
766 | 779 | | |||
767 | //**************************************** | 780 | //**************************************** | ||
768 | // EffectWindow | 781 | // EffectWindow | ||
769 | //**************************************** | 782 | //**************************************** | ||
770 | 783 | | |||
771 | class Q_DECL_HIDDEN EffectWindow::Private | 784 | class Q_DECL_HIDDEN EffectWindow::Private | ||
▲ Show 20 Lines • Show All 1300 Lines • Show Last 20 Lines |
sourceList?