1
0
mirror of synced 2024-11-12 02:00:52 +01:00

fix: Log spam on Wayland

This commit is contained in:
WerWolv 2024-05-17 09:26:13 +02:00
parent c28522b7ef
commit 85fa1b2122
2 changed files with 2 additions and 2 deletions

View File

@ -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"))

View File

@ -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"))