aboutsummaryrefslogtreecommitdiffstats
path: root/swaymsg
diff options
context:
space:
mode:
authorLibravatar Ian Fan <ianfan0@gmail.com>2018-09-21 14:59:01 +0100
committerLibravatar Ian Fan <ianfan0@gmail.com>2018-09-21 15:09:54 +0100
commitccdec2a329794356fdf559560261e5626a7e2098 (patch)
tree5499d14723fcc92cb3aecb5634d63c9fb062ed3f /swaymsg
parentswaybar: update buffer_pos when moving object to start of buffer (diff)
downloadsway-ccdec2a329794356fdf559560261e5626a7e2098.tar.gz
sway-ccdec2a329794356fdf559560261e5626a7e2098.tar.zst
sway-ccdec2a329794356fdf559560261e5626a7e2098.zip
swaybar: reset tokener if json is incomplete
If the tokener parses incomplete json, it sets its error value to json_tokener_continue. This means that extra json should be provided, but the code was providing the entire object again. In the interest of simplicity, the tokener is reset so that buffer_pos always points to the start of the current object.
Diffstat (limited to 'swaymsg')
0 files changed, 0 insertions, 0 deletions