diff --git a/main/gui/source/init/splash_window.cpp b/main/gui/source/init/splash_window.cpp index 68e8c0824..0f5697d28 100644 --- a/main/gui/source/init/splash_window.cpp +++ b/main/gui/source/init/splash_window.cpp @@ -398,7 +398,7 @@ namespace hex::init { void WindowSplash::initGLFW() { glfwSetErrorCallback([](int errorCode, const char *desc) { - if (errorCode == GLFW_PLATFORM_ERROR) { + if (errorCode == GLFW_PLATFORM_ERROR || errorCode == GLFW_FEATURE_UNAVAILABLE) { // Ignore error spam caused by Wayland not supporting moving or resizing // windows or querying their position and size. if (std::string_view(desc).contains("Wayland")) diff --git a/main/gui/source/window/window.cpp b/main/gui/source/window/window.cpp index 056a59865..2ec67f9fe 100644 --- a/main/gui/source/window/window.cpp +++ b/main/gui/source/window/window.cpp @@ -698,7 +698,7 @@ namespace hex { void Window::initGLFW() { auto initialWindowProperties = ImHexApi::System::getInitialWindowProperties(); glfwSetErrorCallback([](int error, const char *desc) { - if (error == GLFW_PLATFORM_ERROR) { + if (error == GLFW_PLATFORM_ERROR || error == GLFW_FEATURE_UNAVAILABLE) { // Ignore error spam caused by Wayland not supporting moving or resizing // windows or querying their position and size. if (std::string_view(desc).contains("Wayland"))