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