From f59bfa68b42eb722a1535b08215146ab5fd3dbc7 Mon Sep 17 00:00:00 2001 From: Dallas Strouse <93224879+orowith2os@users.noreply.github.com> Date: Tue, 28 Mar 2023 15:43:45 -0500 Subject: [PATCH] Don't crash when setting icon or getting focus on Wayland --- src/wl_window.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/wl_window.c b/src/wl_window.c index 5a35c001..b7f2a65c 100644 --- a/src/wl_window.c +++ b/src/wl_window.c @@ -2112,8 +2112,7 @@ void _glfwSetWindowTitleWayland(_GLFWwindow* window, const char* title) void _glfwSetWindowIconWayland(_GLFWwindow* window, int count, const GLFWimage* images) { - _glfwInputError(GLFW_FEATURE_UNAVAILABLE, - "Wayland: The platform does not support setting the window icon"); + fprintf(stderr, "!!! Ignoring Error: Wayland: Setting window icon not supported\n"); } void _glfwGetWindowPosWayland(_GLFWwindow* window, int* xpos, int* ypos) @@ -2356,8 +2355,7 @@ void _glfwRequestWindowAttentionWayland(_GLFWwindow* window) void _glfwFocusWindowWayland(_GLFWwindow* window) { - _glfwInputError(GLFW_FEATURE_UNAVAILABLE, - "Wayland: The platform does not support setting the input focus"); + fprintf(stderr, "!!! Ignoring Error: Wayland: Focusing a window requires user interaction\n"); } void _glfwSetWindowMonitorWayland(_GLFWwindow* window,