Changeset View
Changeset View
Standalone View
Standalone View
plugins/platforms/x11/standalone/x11_platform.cpp
Show All 35 Lines | |||||
36 | #include "screens_xrandr.h" | 36 | #include "screens_xrandr.h" | ||
37 | #include "screenedges_filter.h" | 37 | #include "screenedges_filter.h" | ||
38 | #include "options.h" | 38 | #include "options.h" | ||
39 | #include "overlaywindow_x11.h" | 39 | #include "overlaywindow_x11.h" | ||
40 | #include "non_composited_outline.h" | 40 | #include "non_composited_outline.h" | ||
41 | #include "workspace.h" | 41 | #include "workspace.h" | ||
42 | #include "x11_decoration_renderer.h" | 42 | #include "x11_decoration_renderer.h" | ||
43 | 43 | | |||
44 | #include <kwinxrenderutils.h> | ||||
45 | | ||||
44 | #include <KConfigGroup> | 46 | #include <KConfigGroup> | ||
45 | #include <KLocalizedString> | 47 | #include <KLocalizedString> | ||
46 | 48 | | |||
47 | #include <QThread> | 49 | #include <QThread> | ||
48 | #include <QOpenGLContext> | 50 | #include <QOpenGLContext> | ||
49 | #include <QX11Info> | 51 | #include <QX11Info> | ||
50 | 52 | | |||
51 | namespace KWin | 53 | namespace KWin | ||
Show All 19 Lines | |||||
71 | 73 | | |||
72 | X11StandalonePlatform::~X11StandalonePlatform() | 74 | X11StandalonePlatform::~X11StandalonePlatform() | ||
73 | { | 75 | { | ||
74 | if (m_openGLFreezeProtectionThread) { | 76 | if (m_openGLFreezeProtectionThread) { | ||
75 | m_openGLFreezeProtectionThread->quit(); | 77 | m_openGLFreezeProtectionThread->quit(); | ||
76 | m_openGLFreezeProtectionThread->wait(); | 78 | m_openGLFreezeProtectionThread->wait(); | ||
77 | delete m_openGLFreezeProtectionThread; | 79 | delete m_openGLFreezeProtectionThread; | ||
78 | } | 80 | } | ||
81 | XRenderUtils::cleanup(); | ||||
79 | } | 82 | } | ||
80 | 83 | | |||
81 | void X11StandalonePlatform::init() | 84 | void X11StandalonePlatform::init() | ||
82 | { | 85 | { | ||
83 | if (!QX11Info::isPlatformX11()) { | 86 | if (!QX11Info::isPlatformX11()) { | ||
84 | emit initFailed(); | 87 | emit initFailed(); | ||
85 | return; | 88 | return; | ||
86 | } | 89 | } | ||
90 | XRenderUtils::init(kwinApp()->x11Connection(), kwinApp()->x11RootWindow()); | ||||
87 | setReady(true); | 91 | setReady(true); | ||
88 | emit screensQueried(); | 92 | emit screensQueried(); | ||
89 | } | 93 | } | ||
90 | 94 | | |||
91 | Screens *X11StandalonePlatform::createScreens(QObject *parent) | 95 | Screens *X11StandalonePlatform::createScreens(QObject *parent) | ||
92 | { | 96 | { | ||
93 | return new XRandRScreens(parent); | 97 | return new XRandRScreens(parent); | ||
94 | } | 98 | } | ||
▲ Show 20 Lines • Show All 309 Lines • Show Last 20 Lines |