aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2025-01-21 18:59:03 +0100
committerdec05eba <dec05eba@protonmail.com>2025-01-21 18:59:03 +0100
commitb5aa638c585d374d3c4ceb2533842f9e3087f7dd (patch)
tree27acbeff6759df0a2560b5139d641094d8c353b6 /src
parent7458e6a278f2e711d5b1a242ae7f1235248e759a (diff)
200ms timeout for wayland bullshit
Diffstat (limited to 'src')
-rw-r--r--src/main.cpp4
1 files changed, 2 insertions, 2 deletions
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;