mirror of
https://github.com/glfw/glfw.git
synced 2025-10-03 05:11:01 +00:00
wayland: set O_NONBLOCK on repeat timerfd - fix 100% cpu
This commit is contained in:
parent
e89e9aee41
commit
d86babb14e
@ -1201,7 +1201,7 @@ int _glfwPlatformInit(void)
|
|||||||
|
|
||||||
_glfw.wl.timerfd = -1;
|
_glfw.wl.timerfd = -1;
|
||||||
if (_glfw.wl.seatVersion >= 4)
|
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);
|
||||||
|
|
||||||
#ifndef WITH_DECORATION
|
#ifndef WITH_DECORATION
|
||||||
if (!_glfw.wl.wmBase)
|
if (!_glfw.wl.wmBase)
|
||||||
|
Loading…
Reference in New Issue
Block a user