aboutsummarylogtreecommitdiffstats
path: root/0004-Do-not-crash-on-window-position-set.patch
blob: 1fe2fe186967e6224f8a03990f2dc69710042eba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
From 071e14a3dda0ab312f70dbbbdf987c5933adfc8a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ecmel=20Berk=20Canl=C4=B1er?= <me@ecmelberk.com>
Date: Fri, 25 Jun 2021 02:06:33 +0300
Subject: [PATCH 4/4] Do not crash on window position set

Apparently Minecraft Forge 1.16 does that?
---
 src/wl_window.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/src/wl_window.c b/src/wl_window.c
index 3f8987b8..45d57b81 100644
--- a/src/wl_window.c
+++ b/src/wl_window.c
@@ -1061,9 +1061,6 @@ void _glfwPlatformGetWindowPos(_GLFWwindow* window, int* xpos, int* ypos)
 void _glfwPlatformSetWindowPos(_GLFWwindow* window, int xpos, int ypos)
 {
     // A Wayland client can not set its position, so just warn
-
-    _glfwInputError(GLFW_PLATFORM_ERROR,
-                    "Wayland: Window position setting not supported");
 }
 
 void _glfwPlatformGetWindowSize(_GLFWwindow* window, int* width, int* height)
-- 
2.32.0