Commit f5845fec authored by Martin Flöser's avatar Martin Flöser

[plugins/qpa] Properly ifdef everything with HAVE_WAYLAND_EGL

Hide variables which are only used with wayland egl and mark attributes
as unused if they are not used without having wayland egl.
parent b3a52e39
......@@ -130,6 +130,9 @@ void Window::createEglSurface(EGLDisplay dpy, EGLConfig config)
return;
}
m_eglSurface = eglCreateWindowSurface(dpy, config, m_eglWaylandWindow, nullptr);
#else
Q_UNUSED(dpy)
Q_UNUSED(config)
#endif
}
......
......@@ -31,7 +31,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
class QOpenGLFramebufferObject;
#if HAVE_WAYLAND_EGL
struct wl_egl_window;
#endif
namespace KWayland
{
......@@ -87,7 +89,9 @@ private:
QSharedPointer<QOpenGLFramebufferObject> m_contentFBO;
bool m_resized = false;
ShellClient *m_shellClient = nullptr;
#if HAVE_WAYLAND_EGL
wl_egl_window *m_eglWaylandWindow = nullptr;
#endif
quint32 m_windowId;
const Integration *m_integration;
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment