From 69d06723df436497b92880ef2801eb70a7457785 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Sat, 20 Sep 2008 18:59:14 +0200 Subject: [PATCH] util: import orientation Signed-off-by: Julien Danjou --- common/util.h | 6 ++++++ layouts/fair.c | 12 +++--------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/common/util.h b/common/util.h index 670a6ca0..9f0a0c9c 100644 --- a/common/util.h +++ b/common/util.h @@ -35,6 +35,12 @@ #include "tokenize.h" +typedef enum +{ + Horizontal, + Vertical +} orientation_t; + /** A list of possible position, not sex related */ typedef enum { diff --git a/layouts/fair.c b/layouts/fair.c index 95550c3b..2b19b770 100644 --- a/layouts/fair.c +++ b/layouts/fair.c @@ -27,12 +27,6 @@ extern awesome_t globalconf; -typedef enum -{ - HORIZONTAL, - VERTICAL -} orientation_t; - static void layout_fair(int screen, const orientation_t orientation) { @@ -60,7 +54,7 @@ layout_fair(int screen, const orientation_t orientation) for(c = globalconf.clients; c; c = c->next) if(IS_TILED(c, screen)) { - if (orientation == HORIZONTAL) + if (orientation == Horizontal) { geometry.width = area.width / u_divisions; geometry.height = area.height / v_divisions; @@ -92,13 +86,13 @@ layout_fair(int screen, const orientation_t orientation) void layout_fairh(int screen) { - layout_fair(screen, HORIZONTAL); + layout_fair(screen, Horizontal); } void layout_fairv(int screen) { - layout_fair(screen, VERTICAL); + layout_fair(screen, Vertical); } // vim: filetype=c:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=80