From a583bbb730201b863c783daa90a21f119ca9f168 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Thu, 30 Apr 2009 16:27:29 +0000 Subject: Display the layout name in window lists. --- layout.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'layout.c') diff --git a/layout.c b/layout.c index 64cf771c..ff5485eb 100644 --- a/layout.c +++ b/layout.c @@ -1,4 +1,4 @@ -/* $Id: layout.c,v 1.3 2009-04-01 21:10:08 nicm Exp $ */ +/* $Id: layout.c,v 1.4 2009-04-30 16:27:29 nicm Exp $ */ /* * Copyright (c) 2009 Nicholas Marriott @@ -42,6 +42,12 @@ const struct { { "left-vertical", layout_left_vertical }, }; +const char * +layout_name(struct window *w) +{ + return (layouts[w->layout].name); +} + void layout_next(struct window *w) { -- cgit