[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.
This commit is contained in:
Martin Gräßlin 2017-07-31 18:04:53 +02:00
parent b3a52e3999
commit f5845fec02
2 changed files with 7 additions and 0 deletions

View file

@ -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
}

View file

@ -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;
};