aboutsummaryrefslogtreecommitdiff
path: root/sway/commands/bar/status_command.c
diff options
context:
space:
mode:
authorArmin Preiml <apreiml@strohwolke.at>2018-09-05 16:18:12 +0200
committerArmin Preiml <apreiml@strohwolke.at>2018-09-08 13:24:01 +0200
commit79eaa26b3e74e9332564dfde1e39fe695a0fb18b (patch)
tree9f3f390013ca0c57aee3665e5416c20225cf496b /sway/commands/bar/status_command.c
parent3d8c3e560b9c984fbcc06c3a5edbace90a34aebe (diff)
get_tree: default values
Added default values for all nodes, because the i3 get_tree always returns all fields inside the json objects. Add geometry and window for views. Window is only availabel on x11 windows otherwise it's NULL. Calculate percent only if parent is not empty to avoid division by 0.
Diffstat (limited to 'sway/commands/bar/status_command.c')
0 files changed, 0 insertions, 0 deletions