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", "fairv",
"magnifier", "magnifier",
"max", "max",
"fullscreen",
"spiral", "spiral",
"dwindle", "dwindle",
"floating" "floating"

View file

@ -26,12 +26,12 @@
extern awesome_t globalconf; extern awesome_t globalconf;
void static void
layout_max(int screen) layout_fmax(int screen, bool fs)
{ {
client_t *c; client_t *c;
area_t area = screen_area_get(screen, area_t area = screen_area_get(screen,
&globalconf.screens[screen].wiboxes, fs ? NULL : &globalconf.screens[screen].wiboxes,
&globalconf.screens[screen].padding, &globalconf.screens[screen].padding,
true); true);
@ -48,4 +48,17 @@ layout_max(int screen)
if(IS_TILED(globalconf.screens[screen].client_focus, screen)) if(IS_TILED(globalconf.screens[screen].client_focus, screen))
client_raise(globalconf.screens[screen].client_focus); 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 // vim: filetype=c:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=80

View file

@ -25,6 +25,7 @@
#include "layout.h" #include "layout.h"
layout_t layout_max; layout_t layout_max;
layout_t layout_fullscreen;
#endif #endif
// vim: filetype=c:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=80 // vim: filetype=c:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=80