Skip to content

Commit

Permalink
Fixed inhibitor not printing if idle == NULL
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikReider committed Aug 31, 2021
1 parent 8f02f1f commit 0ee5c96
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/idle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
};

0 comments on commit 0ee5c96

Please sign in to comment.