ui: Enable multi viewports on Linux again if you're not on Wayland

This commit is contained in:
WerWolv
2022-03-22 08:20:14 +01:00
parent 26a7b3325d
commit f7cfee55d5
3 changed files with 18 additions and 3 deletions

View File

@@ -451,4 +451,13 @@ namespace hex {
#endif
}
std::optional<std::string> getEnvironmentVariable(const std::string &env) {
auto value = std::getenv(env.c_str());
if (value == nullptr)
return std::nullopt;
else
return value;
}
}