swaywm / swayidle

Idle management daemon for Wayland
MIT License
550 stars 50 forks source link

Make sure pending resume commands still get run regardless of logind idle inhibitors #116

Open duxovni opened 2 years ago

duxovni commented 2 years ago

I have a service that sets up logind idle inhibitors whenever audio is playing, so my screen won't lock in the middle of a video call or a movie. If an inhibitor starts while my screen is blanked, then swayidle will destroy all of its timers, so my displays won't get turned back on when there's keyboard/mouse input. This PR ensures that if a command is currently pending resume, its timer won't get interfered with until the resume takes place.