diff --git a/platform.cpp b/platform.cpp index 5cdc1bd942..e001c4e288 100644 --- a/platform.cpp +++ b/platform.cpp @@ -413,7 +413,7 @@ void Platform::warpPointer(const QPointF &globalPos) Q_UNUSED(globalPos) } -bool Platform::supportsQpaContext() const +bool Platform::supportsSurfacelessContext() const { if (Compositor *c = Compositor::self()) { return c->scene()->supportsSurfacelessContext(); diff --git a/platform.h b/platform.h index bf8681b10d..29b7e9e960 100644 --- a/platform.h +++ b/platform.h @@ -100,7 +100,7 @@ public: * Whether our Compositing EGL display allows a surface less context * so that a sharing context could be created. */ - virtual bool supportsQpaContext() const; + bool supportsSurfacelessContext() const; /** * The EGLDisplay used by the compositing scene. */ diff --git a/plugins/qpa/window.cpp b/plugins/qpa/window.cpp index 50bd5a756e..d307ad0abb 100644 --- a/plugins/qpa/window.cpp +++ b/plugins/qpa/window.cpp @@ -146,7 +146,7 @@ void Window::unmap() EGLSurface Window::eglSurface() const { - if (kwinApp()->platform()->supportsQpaContext()) { + if (kwinApp()->platform()->supportsSurfacelessContext()) { return EGL_NO_SURFACE; } return kwinApp()->platform()->sceneEglSurface();