Changeset View
Changeset View
Standalone View
Standalone View
effects.cpp
Show First 20 Lines • Show All 49 Lines • ▼ Show 20 Line(s) | |||||
50 | 50 | | |||
51 | #include <QDebug> | 51 | #include <QDebug> | ||
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 "waylandclient.h" | ||
59 | #include "wayland_server.h" | 59 | #include "wayland_server.h" | ||
60 | 60 | | |||
61 | #include "decorations/decorationbridge.h" | 61 | #include "decorations/decorationbridge.h" | ||
62 | #include <KDecoration2/DecorationSettings> | 62 | #include <KDecoration2/DecorationSettings> | ||
63 | 63 | | |||
64 | namespace KWin | 64 | namespace KWin | ||
65 | { | 65 | { | ||
66 | //--------------------- | 66 | //--------------------- | ||
▲ Show 20 Lines • Show All 1671 Lines • ▼ Show 20 Line(s) | 1736 | { | |||
1738 | // emitted, effects can't distinguish managed windows from unmanaged | 1738 | // emitted, effects can't distinguish managed windows from unmanaged | ||
1739 | // windows(e.g. combo box popups, popup menus, etc). Save value of the | 1739 | // windows(e.g. combo box popups, popup menus, etc). Save value of the | ||
1740 | // managed property during construction of EffectWindow. At that time, | 1740 | // managed property during construction of EffectWindow. At that time, | ||
1741 | // parent can be Client, XdgShellClient, or Unmanaged. So, later on, when | 1741 | // parent can be Client, XdgShellClient, or Unmanaged. So, later on, when | ||
1742 | // an instance of Deleted becomes parent of the EffectWindow, effects | 1742 | // an instance of Deleted becomes parent of the EffectWindow, effects | ||
1743 | // can still figure out whether it is/was a managed window. | 1743 | // can still figure out whether it is/was a managed window. | ||
1744 | managed = toplevel->isClient(); | 1744 | managed = toplevel->isClient(); | ||
1745 | 1745 | | |||
1746 | waylandClient = qobject_cast<KWin::XdgShellClient *>(toplevel) != nullptr; | 1746 | waylandClient = qobject_cast<KWin::WaylandClient *>(toplevel) != nullptr; | ||
1747 | x11Client = qobject_cast<KWin::X11Client *>(toplevel) != nullptr || | 1747 | x11Client = qobject_cast<KWin::X11Client *>(toplevel) != nullptr || | ||
1748 | qobject_cast<KWin::Unmanaged *>(toplevel) != nullptr; | 1748 | qobject_cast<KWin::Unmanaged *>(toplevel) != nullptr; | ||
1749 | } | 1749 | } | ||
1750 | 1750 | | |||
1751 | EffectWindowImpl::~EffectWindowImpl() | 1751 | EffectWindowImpl::~EffectWindowImpl() | ||
1752 | { | 1752 | { | ||
1753 | QVariant cachedTextureVariant = data(LanczosCacheRole); | 1753 | QVariant cachedTextureVariant = data(LanczosCacheRole); | ||
1754 | if (cachedTextureVariant.isValid()) { | 1754 | if (cachedTextureVariant.isValid()) { | ||
▲ Show 20 Lines • Show All 667 Lines • Show Last 20 Lines |