From b5aa638c585d374d3c4ceb2533842f9e3087f7dd Mon Sep 17 00:00:00 2001 From: dec05eba Date: Tue, 21 Jan 2025 18:59:03 +0100 Subject: 200ms timeout for wayland bullshit --- src/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/main.cpp b/src/main.cpp index c9378ff..c004259 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -308,7 +308,7 @@ static bool create_window_get_center_position_kde(Display *display, mgl::vec2i & poll_fd.fd = x_fd; poll_fd.events = POLLIN; poll_fd.revents = 0; - const int fds_ready = poll(&poll_fd, 1, 1000); + const int fds_ready = poll(&poll_fd, 1, 200); if(fds_ready == 0) { fprintf(stderr, "Error: timed out waiting for ConfigureNotify after XCreateWindow\n"); break; @@ -372,7 +372,7 @@ static bool create_window_get_center_position_gnome(Display *display, mgl::vec2i poll_fd.fd = x_fd; poll_fd.events = POLLIN; poll_fd.revents = 0; - const int fds_ready = poll(&poll_fd, 1, 1000); + const int fds_ready = poll(&poll_fd, 1, 200); if(fds_ready == 0) { fprintf(stderr, "Error: timed out waiting for MapNotify/ConfigureNotify after XCreateWindow\n"); break; -- cgit v1.2.3