diff options
author | Thomas Adam <thomas@xteddy.org> | 2018-01-17 11:26:10 +0000 |
---|---|---|
committer | Thomas Adam <thomas@xteddy.org> | 2018-01-17 11:26:10 +0000 |
commit | 84ddc72744d88f399103ea350c28d5fb45e28b96 (patch) | |
tree | 76a62ad185f8a274f4243a2365fd01801e421b8e /layout.c | |
parent | 58e9d12f23be4ecc7ab6879e8d19239b430f6553 (diff) | |
parent | 75842bfe66d983580dddf11b676445d5b9fa9f8a (diff) | |
download | rtmux-84ddc72744d88f399103ea350c28d5fb45e28b96.tar.gz rtmux-84ddc72744d88f399103ea350c28d5fb45e28b96.tar.bz2 rtmux-84ddc72744d88f399103ea350c28d5fb45e28b96.zip |
Merge branch 'obsd-master'
Diffstat (limited to 'layout.c')
-rw-r--r-- | layout.c | 19 |
1 files changed, 17 insertions, 2 deletions
@@ -97,9 +97,24 @@ void layout_print_cell(struct layout_cell *lc, const char *hdr, u_int n) { struct layout_cell *lcchild; + const char *type; - log_debug("%s:%*s%p type %u [parent %p] wp=%p [%u,%u %ux%u]", hdr, n, - " ", lc, lc->type, lc->parent, lc->wp, lc->xoff, lc->yoff, lc->sx, + switch (lc->type) { + case LAYOUT_LEFTRIGHT: + type = "LEFTRIGHT"; + break; + case LAYOUT_TOPBOTTOM: + type = "TOPBOTTOM"; + break; + case LAYOUT_WINDOWPANE: + type = "WINDOWPANE"; + break; + default: + type = "UNKNOWN"; + break; + } + log_debug("%s:%*s%p type %s [parent %p] wp=%p [%u,%u %ux%u]", hdr, n, + " ", lc, type, lc->parent, lc->wp, lc->xoff, lc->yoff, lc->sx, lc->sy); switch (lc->type) { case LAYOUT_LEFTRIGHT: |