Skip to content

Commit

Permalink
waitable: Fix draining CNudgeWaitable
Browse files Browse the repository at this point in the history
  • Loading branch information
misyltoad committed Dec 4, 2023
1 parent b5e14ba commit 6935dfe
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/waitable.h
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,11 @@ namespace gamescope
}
}

void OnPollIn() final
{
Drain();
}

bool Nudge()
{
return write( m_nFDs[1], "\n", 1 ) >= 0;
Expand Down

0 comments on commit 6935dfe

Please sign in to comment.