Changeset View
Changeset View
Standalone View
Standalone View
effects.cpp
Show All 40 Lines | |||||
41 | #include "scripting/scriptedeffect.h" | 41 | #include "scripting/scriptedeffect.h" | ||
42 | #include "screens.h" | 42 | #include "screens.h" | ||
43 | #include "screenlockerwatcher.h" | 43 | #include "screenlockerwatcher.h" | ||
44 | #include "thumbnailitem.h" | 44 | #include "thumbnailitem.h" | ||
45 | #include "virtualdesktops.h" | 45 | #include "virtualdesktops.h" | ||
46 | #include "window_property_notify_x11_filter.h" | 46 | #include "window_property_notify_x11_filter.h" | ||
47 | #include "workspace.h" | 47 | #include "workspace.h" | ||
48 | #include "kwinglutils.h" | 48 | #include "kwinglutils.h" | ||
49 | #include "kwineffectquickview.h" | ||||
49 | 50 | | |||
50 | #include <QDebug> | 51 | #include <QDebug> | ||
51 | #include <QDesktopWidget> | | |||
52 | 52 | | |||
53 | #include <Plasma/Theme> | 53 | #include <Plasma/Theme> | ||
54 | 54 | | |||
55 | #include "composite.h" | 55 | #include "composite.h" | ||
56 | #include "xcbutils.h" | 56 | #include "xcbutils.h" | ||
57 | #include "platform.h" | 57 | #include "platform.h" | ||
58 | #include "xdgshellclient.h" | 58 | #include "xdgshellclient.h" | ||
59 | #include "wayland_server.h" | 59 | #include "wayland_server.h" | ||
▲ Show 20 Lines • Show All 1637 Lines • ▼ Show 20 Line(s) | 1694 | auto it = std::find_if(loaded_effects.constBegin(), loaded_effects.constEnd(), | |||
1697 | } | 1697 | } | ||
1698 | ); | 1698 | ); | ||
1699 | if (it == loaded_effects.constEnd()) { | 1699 | if (it == loaded_effects.constEnd()) { | ||
1700 | return nullptr; | 1700 | return nullptr; | ||
1701 | } | 1701 | } | ||
1702 | return (*it).second; | 1702 | return (*it).second; | ||
1703 | } | 1703 | } | ||
1704 | 1704 | | |||
1705 | void EffectsHandlerImpl::renderEffectQuickView(EffectQuickView *w) const | ||||
1706 | { | ||||
1707 | if (!w->isVisible()) { | ||||
1708 | return; | ||||
1709 | } | ||||
1710 | scene()->paintEffectQuickView(w); | ||||
1711 | } | ||||
1712 | | ||||
1705 | //**************************************** | 1713 | //**************************************** | ||
1706 | // EffectWindowImpl | 1714 | // EffectWindowImpl | ||
1707 | //**************************************** | 1715 | //**************************************** | ||
1708 | 1716 | | |||
1709 | EffectWindowImpl::EffectWindowImpl(Toplevel *toplevel) | 1717 | EffectWindowImpl::EffectWindowImpl(Toplevel *toplevel) | ||
1710 | : EffectWindow(toplevel) | 1718 | : EffectWindow(toplevel) | ||
1711 | , toplevel(toplevel) | 1719 | , toplevel(toplevel) | ||
1712 | , sw(nullptr) | 1720 | , sw(nullptr) | ||
▲ Show 20 Lines • Show All 680 Lines • Show Last 20 Lines |