From 5d841ee386081a2b38ad96508be49452f46bf16b Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Thu, 21 Aug 2008 17:58:08 +0200 Subject: [PATCH] client: export fullscreen Signed-off-by: Julien Danjou --- awesomerc.lua.in | 1 + client.c | 7 +++++++ common/tokenize.gperf | 1 + 3 files changed, 9 insertions(+) diff --git a/awesomerc.lua.in b/awesomerc.lua.in index 4c4994fdd..ee793d710 100644 --- a/awesomerc.lua.in +++ b/awesomerc.lua.in @@ -222,6 +222,7 @@ keybinding({ modkey, "Shift" }, "q", awesome.quit):add() -- Client manipulation 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 }, "j", function () awful.client.focusbyidx(1); client.focus:raise() end):add() keybinding({ modkey }, "k", function () awful.client.focusbyidx(-1); client.focus:raise() end):add() diff --git a/client.c b/client.c index e57dbc91c..7441361e3 100644 --- a/client.c +++ b/client.c @@ -1282,6 +1282,9 @@ luaA_client_newindex(lua_State *L) client_need_arrange(*c); } break; + case A_TK_FULLSCREEN: + client_setfullscreen(*c, luaA_checkboolean(L, 3)); + break; case A_TK_ICON_PATH: buf = luaL_checkstring(L, 3); p_delete(&(*c)->icon_path); @@ -1380,6 +1383,7 @@ luaA_client_newindex(lua_State *L) * \lfield focus The focused client. * \lfield opacity The client opacity between 0 and 1. * \lfield ontop The client is on top of every other windows. + * \lfield fullscreen The client is fullscreen or not. */ static int luaA_client_index(lua_State *L) @@ -1467,6 +1471,9 @@ luaA_client_index(lua_State *L) case A_TK_HIDE: lua_pushboolean(L, (*c)->ishidden); break; + case A_TK_FULLSCREEN: + lua_pushboolean(L, (*c)->isfullscreen); + break; case A_TK_ICON_PATH: lua_pushstring(L, (*c)->icon_path); break; diff --git a/common/tokenize.gperf b/common/tokenize.gperf index 63bae7e25..d1e956c39 100644 --- a/common/tokenize.gperf +++ b/common/tokenize.gperf @@ -19,6 +19,7 @@ flex floating floating_placement focus +fullscreen gap grow height