IPC: dump_monitor - do not dump bar if there is no bar ref. #118

This commit is contained in:
bakkeby 2021-05-01 11:47:53 +02:00
parent 7b9460e770
commit e4c92733f2

View File

@ -149,12 +149,14 @@ dump_monitor(yajl_gen gen, Monitor *mon, int is_selected)
)
)
if (mon->bar) {
YSTR("bar"); YMAP(
YSTR("y"); YINT(mon->bar->by);
YSTR("is_shown"); YBOOL(mon->showbar);
YSTR("is_top"); YBOOL(mon->bar->topbar);
YSTR("window_id"); YINT(mon->bar->win);
)
}
)
// clang-format on