diff options
author | Nicholas Marriott <nicm@openbsd.org> | 2010-01-07 20:30:02 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@openbsd.org> | 2010-01-07 20:30:02 +0000 |
commit | 519c6fc7e760dcd608d24dfeb9dc947c6331685b (patch) | |
tree | 9b1959ddd1afc68abc2630c4db30c268d9c47be4 /layout-string.c | |
parent | ac46e876851c2180566583084d85f2c5327f0ab6 (diff) | |
download | rtmux-519c6fc7e760dcd608d24dfeb9dc947c6331685b.tar.gz rtmux-519c6fc7e760dcd608d24dfeb9dc947c6331685b.tar.bz2 rtmux-519c6fc7e760dcd608d24dfeb9dc947c6331685b.zip |
Fix this properly.
Diffstat (limited to 'layout-string.c')
-rw-r--r-- | layout-string.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/layout-string.c b/layout-string.c index 8955fd29..67f1d32a 100644 --- a/layout-string.c +++ b/layout-string.c @@ -47,21 +47,21 @@ layout_find_string(struct window *w, const char *s) lc = NULL; if (strcasecmp(s, "top") == 0) - lc = layout_find_top(lc); + lc = layout_find_top(w->layout_root); else if (strcasecmp(s, "bottom") == 0) - lc = layout_find_bottom(lc); + lc = layout_find_bottom(w->layout_root); else if (strcasecmp(s, "left") == 0) - lc = layout_find_left(lc); + lc = layout_find_left(w->layout_root); else if (strcasecmp(s, "right") == 0) - lc = layout_find_right(lc); + lc = layout_find_right(w->layout_root); else if (strcasecmp(s, "top-left") == 0) - lc = layout_find_topleft(lc); + lc = layout_find_topleft(w->layout_root); else if (strcasecmp(s, "top-right") == 0) - lc = layout_find_topright(lc); + lc = layout_find_topright(w->layout_root); else if (strcasecmp(s, "bottom-left") == 0) - lc = layout_find_bottomleft(lc); + lc = layout_find_bottomleft(w->layout_root); else if (strcasecmp(s, "bottom-right") == 0) - lc = layout_find_bottomright(lc); + lc = layout_find_bottomright(w->layout_root); if (lc == NULL || lc->type != LAYOUT_WINDOWPANE) return (NULL); |