aboutsummarylogtreecommitdiffstats
path: root/0003-Don-t-crash-on-calls-to-focus-or-icon.patch
diff options
context:
space:
mode:
Diffstat (limited to '0003-Don-t-crash-on-calls-to-focus-or-icon.patch')
-rw-r--r--0003-Don-t-crash-on-calls-to-focus-or-icon.patch36
1 files changed, 36 insertions, 0 deletions
diff --git a/0003-Don-t-crash-on-calls-to-focus-or-icon.patch b/0003-Don-t-crash-on-calls-to-focus-or-icon.patch
new file mode 100644
index 000000000000..7fdb135903c3
--- /dev/null
+++ b/0003-Don-t-crash-on-calls-to-focus-or-icon.patch
@@ -0,0 +1,36 @@
+From db9b89fad9058172a844fe0a9faaae5a477c3fb3 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Ecmel=20Berk=20Canl=C4=B1er?= <me@ecmelberk.com>
+Date: Fri, 25 Jun 2021 01:00:01 +0300
+Subject: [PATCH 2/3] Don't crash on calls to focus or icon
+
+Manually applying the following commit
+ https://github.com/glfw/glfw/pull/1725/commits/e89e9aee41382508ed36594a4b028239cad5197b
+---
+ src/wl_window.c | 4 ----
+ 1 file changed, 4 deletions(-)
+
+diff --git a/src/wl_window.c b/src/wl_window.c
+index d10861cd..3f8987b8 100644
+--- a/src/wl_window.c
++++ b/src/wl_window.c
+@@ -1047,8 +1047,6 @@ void _glfwPlatformSetWindowTitle(_GLFWwindow* window, const char* title)
+ void _glfwPlatformSetWindowIcon(_GLFWwindow* window,
+ int count, const GLFWimage* images)
+ {
+- _glfwInputError(GLFW_PLATFORM_ERROR,
+- "Wayland: Setting window icon not supported");
+ }
+
+ void _glfwPlatformGetWindowPos(_GLFWwindow* window, int* xpos, int* ypos)
+@@ -1236,8 +1234,6 @@ void _glfwPlatformRequestWindowAttention(_GLFWwindow* window)
+
+ void _glfwPlatformFocusWindow(_GLFWwindow* window)
+ {
+- _glfwInputError(GLFW_PLATFORM_ERROR,
+- "Wayland: Focusing a window requires user interaction");
+ }
+
+ void _glfwPlatformSetWindowMonitor(_GLFWwindow* window,
+--
+2.32.0
+