diff options
author | Mikkel Oscar Lyderik <mikkeloscar@gmail.com> | 2015-12-19 16:24:51 +0100 |
---|---|---|
committer | Mikkel Oscar Lyderik <mikkeloscar@gmail.com> | 2015-12-19 16:33:58 +0100 |
commit | bc9b93f597fed421739e4d36379c288084504971 (patch) | |
tree | af201185678cc8bc5441181ea88d08694d020f8e /swaybg/main.c | |
parent | 616ea27e19837b0a32eb4bbffc758f45b4d24ea0 (diff) |
swaybar: use select instead of busyloop
Use of busyloop caused high cpu usage for sway because swaybar had to be
redrawn all the time. By using select instead the bar only has to be
redrawn when the status_command changes (i.e. every second) or when the
workspaces are updated.
Fix #345
Diffstat (limited to 'swaybg/main.c')
0 files changed, 0 insertions, 0 deletions