Changeset View
Changeset View
Standalone View
Standalone View
decorations/decorationbridge.cpp
Show All 30 Lines | |||||
31 | #include <config-kwin.h> | 31 | #include <config-kwin.h> | ||
32 | 32 | | |||
33 | // KDecoration | 33 | // KDecoration | ||
34 | #include <KDecoration2/Decoration> | 34 | #include <KDecoration2/Decoration> | ||
35 | #include <KDecoration2/DecoratedClient> | 35 | #include <KDecoration2/DecoratedClient> | ||
36 | #include <KDecoration2/DecorationSettings> | 36 | #include <KDecoration2/DecorationSettings> | ||
37 | 37 | | |||
38 | // KWayland | 38 | // KWayland | ||
39 | #include <KWayland/Server/server_decoration_interface.h> | 39 | #include <KWaylandServer/server_decoration_interface.h> | ||
40 | 40 | | |||
41 | // Frameworks | 41 | // Frameworks | ||
42 | #include <KPluginMetaData> | 42 | #include <KPluginMetaData> | ||
43 | #include <KPluginLoader> | 43 | #include <KPluginLoader> | ||
44 | 44 | | |||
45 | // Qt | 45 | // Qt | ||
46 | #include <QMetaProperty> | 46 | #include <QMetaProperty> | ||
47 | #include <QPainter> | 47 | #include <QPainter> | ||
▲ Show 20 Lines • Show All 58 Lines • ▼ Show 20 Line(s) | |||||
106 | 106 | | |||
107 | void DecorationBridge::readDecorationOptions() | 107 | void DecorationBridge::readDecorationOptions() | ||
108 | { | 108 | { | ||
109 | m_showToolTips = kwinApp()->config()->group(s_pluginName).readEntry("ShowToolTips", true); | 109 | m_showToolTips = kwinApp()->config()->group(s_pluginName).readEntry("ShowToolTips", true); | ||
110 | } | 110 | } | ||
111 | 111 | | |||
112 | void DecorationBridge::init() | 112 | void DecorationBridge::init() | ||
113 | { | 113 | { | ||
114 | using namespace KWayland::Server; | 114 | using namespace KWaylandServer; | ||
115 | m_noPlugin = readNoPlugin(); | 115 | m_noPlugin = readNoPlugin(); | ||
116 | if (m_noPlugin) { | 116 | if (m_noPlugin) { | ||
117 | if (waylandServer()) { | 117 | if (waylandServer()) { | ||
118 | waylandServer()->decorationManager()->setDefaultMode(ServerSideDecorationManagerInterface::Mode::None); | 118 | waylandServer()->decorationManager()->setDefaultMode(ServerSideDecorationManagerInterface::Mode::None); | ||
119 | } | 119 | } | ||
120 | return; | 120 | return; | ||
121 | } | 121 | } | ||
122 | m_plugin = readPlugin(); | 122 | m_plugin = readPlugin(); | ||
▲ Show 20 Lines • Show All 212 Lines • Show Last 20 Lines |