client: export fullscreen

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2008-08-21 17:58:08 +02:00
parent abb497fa56
commit 5d841ee386
3 changed files with 9 additions and 0 deletions

View File

@ -222,6 +222,7 @@ keybinding({ modkey, "Shift" }, "q", awesome.quit):add()
-- Client manipulation -- Client manipulation
keybinding({ modkey }, "m", awful.client.maximize):add() keybinding({ modkey }, "m", awful.client.maximize):add()
keybinding({ modkey }, "f", function () client.focus.fullscreen = not client.focus.fullscreen end):add()
keybinding({ modkey, "Shift" }, "c", function () client.focus:kill() end):add() keybinding({ modkey, "Shift" }, "c", function () client.focus:kill() end):add()
keybinding({ modkey }, "j", function () awful.client.focusbyidx(1); client.focus:raise() end):add() keybinding({ modkey }, "j", function () awful.client.focusbyidx(1); client.focus:raise() end):add()
keybinding({ modkey }, "k", function () awful.client.focusbyidx(-1); client.focus:raise() end):add() keybinding({ modkey }, "k", function () awful.client.focusbyidx(-1); client.focus:raise() end):add()

View File

@ -1282,6 +1282,9 @@ luaA_client_newindex(lua_State *L)
client_need_arrange(*c); client_need_arrange(*c);
} }
break; break;
case A_TK_FULLSCREEN:
client_setfullscreen(*c, luaA_checkboolean(L, 3));
break;
case A_TK_ICON_PATH: case A_TK_ICON_PATH:
buf = luaL_checkstring(L, 3); buf = luaL_checkstring(L, 3);
p_delete(&(*c)->icon_path); p_delete(&(*c)->icon_path);
@ -1380,6 +1383,7 @@ luaA_client_newindex(lua_State *L)
* \lfield focus The focused client. * \lfield focus The focused client.
* \lfield opacity The client opacity between 0 and 1. * \lfield opacity The client opacity between 0 and 1.
* \lfield ontop The client is on top of every other windows. * \lfield ontop The client is on top of every other windows.
* \lfield fullscreen The client is fullscreen or not.
*/ */
static int static int
luaA_client_index(lua_State *L) luaA_client_index(lua_State *L)
@ -1467,6 +1471,9 @@ luaA_client_index(lua_State *L)
case A_TK_HIDE: case A_TK_HIDE:
lua_pushboolean(L, (*c)->ishidden); lua_pushboolean(L, (*c)->ishidden);
break; break;
case A_TK_FULLSCREEN:
lua_pushboolean(L, (*c)->isfullscreen);
break;
case A_TK_ICON_PATH: case A_TK_ICON_PATH:
lua_pushstring(L, (*c)->icon_path); lua_pushstring(L, (*c)->icon_path);
break; break;

View File

@ -19,6 +19,7 @@ flex
floating floating
floating_placement floating_placement
focus focus
fullscreen
gap gap
grow grow
height height