From 0ee5c96132ef0e2d80b503e177221d7a67069ab3 Mon Sep 17 00:00:00 2001 From: Erik Reider Date: Tue, 31 Aug 2021 21:46:46 +0200 Subject: [PATCH] Fixed inhibitor not printing if idle == NULL --- src/idle.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/idle.cpp b/src/idle.cpp index 1ff9778..73f3295 100644 --- a/src/idle.cpp +++ b/src/idle.cpp @@ -67,15 +67,15 @@ class Idle { idle = zwp_idle_inhibit_manager_v1_create_inhibitor( wl_idle_inhibit_manager, surface); wl_display_roundtrip(display); - cout << "IDLE INHIBITED" << endl; } + cout << "IDLE INHIBITED" << endl; } else { if (idle != NULL) { zwp_idle_inhibitor_v1_destroy(idle); idle = NULL; wl_display_roundtrip(display); - cout << "NOT IDLE INHIBITED" << endl; } + cout << "NOT IDLE INHIBITED" << endl; } } };