Changeset View
Changeset View
Standalone View
Standalone View
plugins/platforms/x11/standalone/glxbackend.cpp
Show All 23 Lines | |||||
24 | 24 | | |||
25 | // own | 25 | // own | ||
26 | #include "glxbackend.h" | 26 | #include "glxbackend.h" | ||
27 | #include "logging.h" | 27 | #include "logging.h" | ||
28 | // kwin | 28 | // kwin | ||
29 | #include "options.h" | 29 | #include "options.h" | ||
30 | #include "overlaywindow.h" | 30 | #include "overlaywindow.h" | ||
31 | #include "composite.h" | 31 | #include "composite.h" | ||
32 | #include "platform.h" | ||||
32 | #include "screens.h" | 33 | #include "screens.h" | ||
33 | #include "xcbutils.h" | 34 | #include "xcbutils.h" | ||
34 | // kwin libs | 35 | // kwin libs | ||
35 | #include <kwinglplatform.h> | 36 | #include <kwinglplatform.h> | ||
36 | #include <kwinxrenderutils.h> | 37 | #include <kwinxrenderutils.h> | ||
37 | // Qt | 38 | // Qt | ||
38 | #include <QDebug> | 39 | #include <QDebug> | ||
39 | #include <QOpenGLContext> | 40 | #include <QOpenGLContext> | ||
▲ Show 20 Lines • Show All 59 Lines • ▼ Show 20 Line(s) | |||||
99 | 100 | | |||
100 | 101 | | |||
101 | // ----------------------------------------------------------------------- | 102 | // ----------------------------------------------------------------------- | ||
102 | 103 | | |||
103 | 104 | | |||
104 | 105 | | |||
105 | GlxBackend::GlxBackend(Display *display) | 106 | GlxBackend::GlxBackend(Display *display) | ||
106 | : OpenGLBackend() | 107 | : OpenGLBackend() | ||
107 | , m_overlayWindow(new OverlayWindow()) | 108 | , m_overlayWindow(kwinApp()->platform()->createOverlayWindow()) | ||
108 | , window(None) | 109 | , window(None) | ||
109 | , fbconfig(NULL) | 110 | , fbconfig(NULL) | ||
110 | , glxWindow(None) | 111 | , glxWindow(None) | ||
111 | , ctx(nullptr) | 112 | , ctx(nullptr) | ||
112 | , m_bufferAge(0) | 113 | , m_bufferAge(0) | ||
113 | , haveSwapInterval(false) | 114 | , haveSwapInterval(false) | ||
114 | , m_x11Display(display) | 115 | , m_x11Display(display) | ||
115 | { | 116 | { | ||
▲ Show 20 Lines • Show All 844 Lines • Show Last 20 Lines |