diff options
| author | bakkeby <[email protected]> | 2021-05-01 11:47:53 +0200 |
|---|---|---|
| committer | bakkeby <[email protected]> | 2021-05-01 11:49:37 +0200 |
| commit | e4c92733f22df3a13f57eb51e48c7a4cccf34129 (patch) | |
| tree | c90d62eb2aba37b2c4d00d4d268ac7f4707649d6 /patch | |
| parent | 7b9460e770b5fa5f53b1748dc82ddd664d7129af (diff) | |
| download | dwm-flexipatch-e4c92733f22df3a13f57eb51e48c7a4cccf34129.tar.gz dwm-flexipatch-e4c92733f22df3a13f57eb51e48c7a4cccf34129.zip | |
IPC: dump_monitor - do not dump bar if there is no bar ref. #118
Diffstat (limited to 'patch')
| -rw-r--r-- | patch/ipc/yajl_dumps.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/patch/ipc/yajl_dumps.c b/patch/ipc/yajl_dumps.c index d5d2a61..83889fc 100644 --- a/patch/ipc/yajl_dumps.c +++ b/patch/ipc/yajl_dumps.c @@ -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 |
