From 76058c634f26cab98293f8d308ad77c98aa966cc Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Mon, 6 Oct 2008 10:54:43 +0200 Subject: [PATCH] layout: add fullscreen Signed-off-by: Julien Danjou --- awesomerc.lua.in | 1 + layouts/max.c | 19 ++++++++++++++++--- layouts/max.h | 1 + 3 files changed, 18 insertions(+), 3 deletions(-) diff --git a/awesomerc.lua.in b/awesomerc.lua.in index 8367a72a4..2dabb4339 100644 --- a/awesomerc.lua.in +++ b/awesomerc.lua.in @@ -30,6 +30,7 @@ layouts = "fairv", "magnifier", "max", + "fullscreen", "spiral", "dwindle", "floating" diff --git a/layouts/max.c b/layouts/max.c index 0c2454149..a41e2fae9 100644 --- a/layouts/max.c +++ b/layouts/max.c @@ -26,12 +26,12 @@ extern awesome_t globalconf; -void -layout_max(int screen) +static void +layout_fmax(int screen, bool fs) { client_t *c; area_t area = screen_area_get(screen, - &globalconf.screens[screen].wiboxes, + fs ? NULL : &globalconf.screens[screen].wiboxes, &globalconf.screens[screen].padding, true); @@ -48,4 +48,17 @@ layout_max(int screen) if(IS_TILED(globalconf.screens[screen].client_focus, screen)) client_raise(globalconf.screens[screen].client_focus); } + +void +layout_max(int screen) +{ + return layout_fmax(screen, false); +} + +void +layout_fullscreen(int screen) +{ + return layout_fmax(screen, true); +} + // vim: filetype=c:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=80 diff --git a/layouts/max.h b/layouts/max.h index 07107eb49..e3aab3a32 100644 --- a/layouts/max.h +++ b/layouts/max.h @@ -25,6 +25,7 @@ #include "layout.h" layout_t layout_max; +layout_t layout_fullscreen; #endif // vim: filetype=c:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=80