layout: add fullscreen

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2008-10-06 10:54:43 +02:00
parent c8640013c2
commit 76058c634f
3 changed files with 18 additions and 3 deletions

View File

@ -30,6 +30,7 @@ layouts =
"fairv",
"magnifier",
"max",
"fullscreen",
"spiral",
"dwindle",
"floating"

View File

@ -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

View File

@ -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