aboutsummarylogtreecommitdiffstats
path: root/0003-Don-t-crash-on-calls-to-focus-or-icon.patch
diff options
context:
space:
mode:
authorEncryptedCicada2021-12-29 11:37:25 +0530
committerEncryptedCicada2021-12-29 11:37:25 +0530
commitfe976390827d285132270188849f32e956524e1f (patch)
tree6acfd85f786f9eadc5cc26c8a583783a1f4d4171 /0003-Don-t-crash-on-calls-to-focus-or-icon.patch
parent3c94b47ff80eb81fae96049b4ed1b26657afe390 (diff)
downloadaur-fe976390827d285132270188849f32e956524e1f.tar.gz
Merged Upstream
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.patch33
1 files changed, 33 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..768c986a18a2
--- /dev/null
+++ b/0003-Don-t-crash-on-calls-to-focus-or-icon.patch
@@ -0,0 +1,33 @@
+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Ecmel=20Berk=20Canl=C4=B1er?= <me@ecmelberk.com>
+Date: Tue, 28 Dec 2021 19:41:19 +0300
+Subject: Don't crash on calls to focus or icon
+
+---
+ 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 656743a9..c36b11cd 100644
+--- a/src/wl_window.c
++++ b/src/wl_window.c
+@@ -885,8 +885,7 @@ void _glfwPlatformSetWindowTitle(_GLFWwindow* window, const char* title)
+ void _glfwPlatformSetWindowIcon(_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: The platform does not support setting the window icon\n");
+ }
+
+ void _glfwPlatformGetWindowPos(_GLFWwindow* window, int* xpos, int* ypos)
+@@ -1042,8 +1041,7 @@ void _glfwPlatformRequestWindowAttention(_GLFWwindow* window)
+
+ void _glfwPlatformFocusWindow(_GLFWwindow* window)
+ {
+- _glfwInputError(GLFW_FEATURE_UNAVAILABLE,
+- "Wayland: The platform does not support setting the input focus");
++ fprintf(stderr, "!!! Ignoring Error: Wayland: The platform does not support setting the input focus\n");
+ }
+
+ void _glfwPlatformSetWindowMonitor(_GLFWwindow* window,