Skip to content

Commit

Permalink
Initial fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikReider committed Jun 21, 2023
1 parent ef41240 commit 927ba85
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 @@ -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;
}
Expand Down

0 comments on commit 927ba85

Please sign in to comment.