WindowServer: Make clients nonblock

Also dont allow freezed windows to "steal" focus and lock up the window
server :D
This commit is contained in:
2025-11-16 03:42:21 +02:00
parent f166cb09ec
commit 9803209ba1
2 changed files with 1 additions and 7 deletions

View File

@@ -254,7 +254,7 @@ int main()
if (FD_ISSET(server_fd, &fds))
{
int window_fd = accept4(server_fd, nullptr, nullptr, SOCK_CLOEXEC);
int window_fd = accept4(server_fd, nullptr, nullptr, SOCK_NONBLOCK | SOCK_CLOEXEC);
if (window_fd == -1)
{
dwarnln("accept: {}", strerror(errno));