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; }