sys: Fixed compile issue on non-Windows

This commit is contained in:
WerWolv
2022-08-04 09:51:07 +02:00
parent be37228dc6
commit 0f8ac672f3
3 changed files with 9 additions and 1 deletions

View File

@@ -13,6 +13,8 @@
#include <sys/wait.h>
#include <unistd.h>
#include <imgui_impl_glfw.h>
namespace hex {
void Window::initNative() {
@@ -22,6 +24,8 @@ namespace hex {
}
void Window::setupNativeWindow() {
ImGui_ImplGlfw_SetBorderlessWindowMode(false);
bool themeFollowSystem = ImHexApi::System::usesSystemThemeDetection();
EventManager::subscribe<EventOSThemeChanged>(this, [themeFollowSystem] {
if (!themeFollowSystem) return;

View File

@@ -12,6 +12,8 @@
#include <nlohmann/json.hpp>
#include <unistd.h>
#include <imgui_impl_glfw.h>
namespace hex {
void Window::initNative() {
@@ -21,6 +23,8 @@ namespace hex {
}
void Window::setupNativeWindow() {
ImGui_ImplGlfw_SetBorderlessWindowMode(false);
bool themeFollowSystem = ImHexApi::System::usesSystemThemeDetection();
EventManager::subscribe<EventOSThemeChanged>(this, [themeFollowSystem] {
if (!themeFollowSystem) return;