mirror of
https://github.com/mintycube/dwm.git
synced 2024-10-22 14:05:45 +02:00
IPC: dump_monitor - do not dump bar if there is no bar ref. #118
This commit is contained in:
parent
7b9460e770
commit
e4c92733f2
@ -149,12 +149,14 @@ dump_monitor(yajl_gen gen, Monitor *mon, int is_selected)
|
||||
)
|
||||
)
|
||||
|
||||
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);
|
||||
)
|
||||
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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user