aboutsummaryrefslogtreecommitdiffstats
path: root/sway/input/cursor.c
diff options
context:
space:
mode:
authorLibravatar Milkey Mouse <milkeymouse@meme.institute>2020-05-20 13:57:56 -0700
committerLibravatar Simon Ser <contact@emersion.fr>2020-05-20 23:11:02 +0200
commit45e4e9217238fe658b99634d284768439969ad79 (patch)
treeef94c0728b949a1fba90d76e0e16d37a0271fdf3 /sway/input/cursor.c
parentsway.5: make formatting more consistent (diff)
downloadsway-45e4e9217238fe658b99634d284768439969ad79.tar.gz
sway-45e4e9217238fe658b99634d284768439969ad79.tar.zst
sway-45e4e9217238fe658b99634d284768439969ad79.zip
swaybar: add NULL check when listing workspaces
For some reason my version of sway doesn't show workspace names: $ swaymsg -t get_outputs Output HDMI-A-1 '(null) (null) (null)' (inactive) Output HDMI-A-2 '(null) (null) (null)' (inactive) Which is weird, but it's no reason to crash swaybar. The field is totally missing from the JSON, so it ends up doing strcmp(NULL, name) which is undefined behavior.
Diffstat (limited to 'sway/input/cursor.c')
0 files changed, 0 insertions, 0 deletions