WindowServer: Make clients nonblock
Also dont allow freezed windows to "steal" focus and lock up the window server :D
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user