sway

i3-compatible Wayland compositor
git clone https://git.awy.one/sway
Log | Files | Refs | README | LICENSE

commit dbda5d35eb448a7c2f846c3ade8c9659be9928ef
parent e6a52ae387ff3db64cc0867415368bd711c41566
Author: Ian Fan <ianfan0@gmail.com>
Date:   Wed, 19 Sep 2018 15:16:19 +0100

swaybar: update buffer_pos when moving object to start of buffer

Diffstat:
Mswaybar/i3bar.c | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/swaybar/i3bar.c b/swaybar/i3bar.c @@ -204,6 +204,7 @@ bool i3bar_handle_readable(struct status_line *status) { status->buffer_index -= buffer_pos; memmove(status->buffer, &status->buffer[buffer_pos], status->buffer_index); + buffer_pos = 0; } else { // expand buffer status->buffer_size *= 2;