core: Use less confusing name for Platform::supportsQpaContext()

Platform::supportsQpaContext() indicates if the EGL display supports
surfaceless contexts, so reflect that in the method name.
This commit is contained in:
Vlad Zahorodnii 2020-10-12 09:50:55 +03:00
parent 9b89a3d967
commit 29fbe27ffc
3 changed files with 3 additions and 3 deletions

View file

@ -413,7 +413,7 @@ void Platform::warpPointer(const QPointF &globalPos)
Q_UNUSED(globalPos) Q_UNUSED(globalPos)
} }
bool Platform::supportsQpaContext() const bool Platform::supportsSurfacelessContext() const
{ {
if (Compositor *c = Compositor::self()) { if (Compositor *c = Compositor::self()) {
return c->scene()->supportsSurfacelessContext(); return c->scene()->supportsSurfacelessContext();

View file

@ -100,7 +100,7 @@ public:
* Whether our Compositing EGL display allows a surface less context * Whether our Compositing EGL display allows a surface less context
* so that a sharing context could be created. * so that a sharing context could be created.
*/ */
virtual bool supportsQpaContext() const; bool supportsSurfacelessContext() const;
/** /**
* The EGLDisplay used by the compositing scene. * The EGLDisplay used by the compositing scene.
*/ */

View file

@ -146,7 +146,7 @@ void Window::unmap()
EGLSurface Window::eglSurface() const EGLSurface Window::eglSurface() const
{ {
if (kwinApp()->platform()->supportsQpaContext()) { if (kwinApp()->platform()->supportsSurfacelessContext()) {
return EGL_NO_SURFACE; return EGL_NO_SURFACE;
} }
return kwinApp()->platform()->sceneEglSurface(); return kwinApp()->platform()->sceneEglSurface();