[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.icc-effect-5.14.5
parent
b3a52e3999
commit
f5845fec02
|
@ -130,6 +130,9 @@ void Window::createEglSurface(EGLDisplay dpy, EGLConfig config)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
m_eglSurface = eglCreateWindowSurface(dpy, config, m_eglWaylandWindow, nullptr);
|
m_eglSurface = eglCreateWindowSurface(dpy, config, m_eglWaylandWindow, nullptr);
|
||||||
|
#else
|
||||||
|
Q_UNUSED(dpy)
|
||||||
|
Q_UNUSED(config)
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -31,7 +31,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
class QOpenGLFramebufferObject;
|
class QOpenGLFramebufferObject;
|
||||||
|
|
||||||
|
#if HAVE_WAYLAND_EGL
|
||||||
struct wl_egl_window;
|
struct wl_egl_window;
|
||||||
|
#endif
|
||||||
|
|
||||||
namespace KWayland
|
namespace KWayland
|
||||||
{
|
{
|
||||||
|
@ -87,7 +89,9 @@ private:
|
||||||
QSharedPointer<QOpenGLFramebufferObject> m_contentFBO;
|
QSharedPointer<QOpenGLFramebufferObject> m_contentFBO;
|
||||||
bool m_resized = false;
|
bool m_resized = false;
|
||||||
ShellClient *m_shellClient = nullptr;
|
ShellClient *m_shellClient = nullptr;
|
||||||
|
#if HAVE_WAYLAND_EGL
|
||||||
wl_egl_window *m_eglWaylandWindow = nullptr;
|
wl_egl_window *m_eglWaylandWindow = nullptr;
|
||||||
|
#endif
|
||||||
quint32 m_windowId;
|
quint32 m_windowId;
|
||||||
const Integration *m_integration;
|
const Integration *m_integration;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue