From b90cfa8e5ca0914edd33d4d1c375dc37b8cf7194 Mon Sep 17 00:00:00 2001
From: Bananymous <oskari.alaranta@bananymous.com>
Date: Tue, 13 May 2025 10:15:55 +0300
Subject: [PATCH] test-window: poll events instead of sleeping

---
 userspace/tests/test-window/main.cpp | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/userspace/tests/test-window/main.cpp b/userspace/tests/test-window/main.cpp
index 6cea9e90..cd6cf44d 100644
--- a/userspace/tests/test-window/main.cpp
+++ b/userspace/tests/test-window/main.cpp
@@ -55,11 +55,7 @@ int main()
 
 	while (running)
 	{
+		window->wait_events();
 		window->poll_events();
-
-		timespec duration;
-		duration.tv_sec = 0;
-		duration.tv_nsec = 16'666'666;
-		nanosleep(&duration, nullptr);
 	}
 }