fix: Log spam on Wayland
This commit is contained in:
parent
c28522b7ef
commit
85fa1b2122
@ -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"))
|
||||
|
@ -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"))
|
||||
|
Loading…
Reference in New Issue
Block a user