Hopefully last missed ENABLE_WAYLAND check

Signed-off-by: Alexis Maiquez <almamu@almamu.com>
This commit is contained in:
Alexis Maiquez 2023-04-22 13:13:00 +02:00
parent ddd448b1e3
commit b9dbb652d3

View File

@ -277,6 +277,7 @@ namespace WallpaperEngine::Application
void CWallpaperApplication::show ()
{
#ifdef ENABLE_WAYLAND
const bool WAYLAND_DISPLAY = getenv ("WAYLAND_DISPLAY");
// setup the right video driver based on the environment and the startup mode requested
@ -288,6 +289,7 @@ namespace WallpaperEngine::Application
videoDriver = waylandDriver;
}
else
#endif
{
auto x11Driver = new WallpaperEngine::Render::Drivers::CX11OpenGLDriver ("wallpaperengine", this->m_context, *this);
// no wayland detected, try the old X11 method