summaryrefslogtreecommitdiffstats
path: root/layout-string.c
diff options
context:
space:
mode:
authorTiago Cunha <tcunha@gmx.com>2010-01-08 16:28:04 +0000
committerTiago Cunha <tcunha@gmx.com>2010-01-08 16:28:04 +0000
commitf5dd79a01a439d3c37e7a9ca60f4c2be26d30415 (patch)
treef237e963f067795a3cad734099cb603d8700f1cd /layout-string.c
parent4a6191c5d1a1bb7c05c1582d863b3ebe2469a3aa (diff)
Sync OpenBSD patchset 603:
Fix this properly.
Diffstat (limited to 'layout-string.c')
-rw-r--r--layout-string.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/layout-string.c b/layout-string.c
index 63bfb00e..37a68bb2 100644
--- a/layout-string.c
+++ b/layout-string.c
@@ -1,4 +1,4 @@
-/* $Id: layout-string.c,v 1.2 2010-01-08 16:25:50 tcunha Exp $ */
+/* $Id: layout-string.c,v 1.3 2010-01-08 16:28:04 tcunha Exp $ */
/*
* Copyright (c) 2009 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -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);