aboutsummaryrefslogtreecommitdiff
path: root/common/loop.c
AgeCommit message (Collapse)Author
2018-10-15Move swaybar's event loop to common directory and refactorRyan Dwyer
* The loop functions are now prefixed with `loop_`. * It is now easy to add timers to the loop. * Timers are implemented using pollfd and timerfd, rather than manually checking them when any other event happens to arrive.