aboutsummarylogtreecommitdiffstats
path: root/0001-Wayland-Set-O_NONBLOCK-on-repeat-timerfd.patch
diff options
context:
space:
mode:
authorEncryptedCicada2021-12-29 11:37:25 +0530
committerEncryptedCicada2021-12-29 11:37:25 +0530
commitfe976390827d285132270188849f32e956524e1f (patch)
tree6acfd85f786f9eadc5cc26c8a583783a1f4d4171 /0001-Wayland-Set-O_NONBLOCK-on-repeat-timerfd.patch
parent3c94b47ff80eb81fae96049b4ed1b26657afe390 (diff)
downloadaur-fe976390827d285132270188849f32e956524e1f.tar.gz
Merged Upstream
Diffstat (limited to '0001-Wayland-Set-O_NONBLOCK-on-repeat-timerfd.patch')
-rw-r--r--0001-Wayland-Set-O_NONBLOCK-on-repeat-timerfd.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/0001-Wayland-Set-O_NONBLOCK-on-repeat-timerfd.patch b/0001-Wayland-Set-O_NONBLOCK-on-repeat-timerfd.patch
new file mode 100644
index 000000000000..9797dca34d96
--- /dev/null
+++ b/0001-Wayland-Set-O_NONBLOCK-on-repeat-timerfd.patch
@@ -0,0 +1,33 @@
+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
+From: Stone Tickle <lattis@mochiro.moe>
+Date: Fri, 5 Jun 2020 12:51:25 +0900
+Subject: Wayland: Set O_NONBLOCK on repeat timerfd
+
+Fixes #1710
+Fixes #1711
+---
+ src/wl_init.c | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/src/wl_init.c b/src/wl_init.c
+index 5e20daa6..4988d3a5 100644
+--- a/src/wl_init.c
++++ b/src/wl_init.c
+@@ -1148,7 +1148,7 @@ int _glfwPlatformInit(void)
+
+ _glfw.wl.timerfd = -1;
+ if (_glfw.wl.seatVersion >= 4)
+- _glfw.wl.timerfd = timerfd_create(CLOCK_MONOTONIC, TFD_CLOEXEC);
++ _glfw.wl.timerfd = timerfd_create(CLOCK_MONOTONIC, TFD_CLOEXEC | TFD_NONBLOCK);
+
+ if (!_glfw.wl.wmBase)
+ {
+@@ -1182,7 +1182,7 @@ int _glfwPlatformInit(void)
+ wl_cursor_theme_load(cursorTheme, 2 * cursorSize, _glfw.wl.shm);
+ _glfw.wl.cursorSurface =
+ wl_compositor_create_surface(_glfw.wl.compositor);
+- _glfw.wl.cursorTimerfd = timerfd_create(CLOCK_MONOTONIC, TFD_CLOEXEC);
++ _glfw.wl.cursorTimerfd = timerfd_create(CLOCK_MONOTONIC, TFD_CLOEXEC | TFD_NONBLOCK);
+ }
+
+ if (_glfw.wl.seat && _glfw.wl.dataDeviceManager)