aboutsummaryrefslogtreecommitdiff
path: root/swaylock/main.c
diff options
context:
space:
mode:
authorMikkel Oscar Lyderik <mikkeloscar@gmail.com>2015-12-19 16:24:51 +0100
committerMikkel Oscar Lyderik <mikkeloscar@gmail.com>2015-12-19 16:33:58 +0100
commitbc9b93f597fed421739e4d36379c288084504971 (patch)
treeaf201185678cc8bc5441181ea88d08694d020f8e /swaylock/main.c
parent616ea27e19837b0a32eb4bbffc758f45b4d24ea0 (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 'swaylock/main.c')
0 files changed, 0 insertions, 0 deletions