From 927ba8540623fa52c14d14db42283e777c2bc30c Mon Sep 17 00:00:00 2001 From: Erik Reider <35975961+ErikReider@users.noreply.github.com> Date: Wed, 21 Jun 2023 23:19:53 +0200 Subject: [PATCH] Initial fix --- src/idle.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/idle.cpp b/src/idle.cpp index e535b0a..8fd6b03 100644 --- a/src/idle.cpp +++ b/src/idle.cpp @@ -55,14 +55,14 @@ void Idle::update(bool isRunning) { if (idle == NULL) { idle = zwp_idle_inhibit_manager_v1_create_inhibitor( wl_idle_inhibit_manager, surface); - wl_display_roundtrip(display); + wl_display_sync(display); } cout << "IDLE INHIBITED" << endl; } else { if (idle != NULL) { zwp_idle_inhibitor_v1_destroy(idle); idle = NULL; - wl_display_roundtrip(display); + wl_display_sync(display); } cout << "NOT IDLE INHIBITED" << endl; }