Clean some wayland dependencies.
This commit is contained in:
parent
339a789b8a
commit
b2917e7e5d
7 changed files with 81 additions and 63 deletions
|
@ -2,7 +2,9 @@
|
|||
|
||||
#ifdef __linux__
|
||||
#include "XcbInterface.h"
|
||||
#ifdef HAS_WAYLAND
|
||||
#include "WaylandInterface.h"
|
||||
#endif
|
||||
#else
|
||||
#include "Win32UiInterface.h"
|
||||
#endif
|
||||
|
@ -21,8 +23,13 @@ std::unique_ptr<AbstractUIInterface> UiInterfaceFactory::create(DesktopManager*
|
|||
}
|
||||
else
|
||||
{
|
||||
#ifdef HAS_WAYLAND
|
||||
const bool use_hardware = (backend != Backend::WAYLAND_RASTER);
|
||||
return std::make_unique<WaylandInterface>(desktopManager, std::move(fonts_manager), use_hardware);
|
||||
#else
|
||||
const bool use_hardware = (backend != Backend::X11_RASTER);
|
||||
return std::make_unique<XcbInterface>(desktopManager, std::move(fonts_manager), use_hardware);
|
||||
#endif
|
||||
}
|
||||
#else
|
||||
return std::make_unique<Win32UiInterface>();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue