From 6ee512246297ed0c25d5788865a8a8d245951dbc Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Mon, 5 Oct 2009 20:37:34 +0200 Subject: [PATCH] client: remove redraw() Signed-off-by: Julien Danjou --- awesomerc.lua.in | 1 - luadoc/client.lua | 5 ----- manpages/awesome.1.txt | 2 -- objects/client.c | 27 --------------------------- 4 files changed, 35 deletions(-) diff --git a/awesomerc.lua.in b/awesomerc.lua.in index 7adc639c2..d16ca3e20 100644 --- a/awesomerc.lua.in +++ b/awesomerc.lua.in @@ -227,7 +227,6 @@ clientkeys = awful.util.table.join( awful.key({ modkey, "Control" }, "space", awful.client.floating.toggle ), awful.key({ modkey, "Control" }, "Return", function (c) c:swap(awful.client.getmaster()) end), awful.key({ modkey, }, "o", awful.client.movetoscreen ), - awful.key({ modkey, "Shift" }, "r", function (c) c:redraw() end), awful.key({ modkey, }, "n", function (c) c.minimized = not c.minimized end), awful.key({ modkey, }, "m", function (c) diff --git a/luadoc/client.lua b/luadoc/client.lua index 3235c9a3c..85700ced7 100644 --- a/luadoc/client.lua +++ b/luadoc/client.lua @@ -105,11 +105,6 @@ module("client") -- @name lower -- @class function ---- Redraw a client by unmapping and mapping it quickly. --- @param - --- @name redraw --- @class function - --- Stop managing a client. -- @param - -- @name unmanage diff --git a/manpages/awesome.1.txt b/manpages/awesome.1.txt index 523f1c247..a7c14ebd0 100644 --- a/manpages/awesome.1.txt +++ b/manpages/awesome.1.txt @@ -89,8 +89,6 @@ Window manager control Clients ~~~~~~~ -*Mod4 + Shift + r*:: - Redraw the focused window. *Mod4 + m*:: Maximize client. *Mod4 + n*:: diff --git a/objects/client.c b/objects/client.c index e7d1ab4c5..c77fa4148 100644 --- a/objects/client.c +++ b/objects/client.c @@ -1475,32 +1475,6 @@ luaA_client_lower(lua_State *L) return 0; } -/** Redraw a client by unmapping and mapping it quickly. - * \param L The Lua VM state. - * - * \luastack - * \lvalue A client. - */ -static int -luaA_client_redraw(lua_State *L) -{ - client_t *c = luaA_checkudata(L, 1, &client_class); - - xcb_unmap_window(globalconf.connection, c->window); - xcb_map_window(globalconf.connection, c->window); - - /* Set the focus on the current window if the redraw has been - performed on the window where the pointer is currently on - because after the unmapping/mapping, the focus is lost */ - if(globalconf.screen_focus->client_focus == c) - { - client_unfocus(c); - client_focus(c); - } - - return 0; -} - /** Stop managing a client. * \param L The Lua VM state. * \return The number of elements pushed on stack. @@ -2111,7 +2085,6 @@ client_class_setup(lua_State *L) { "swap", luaA_client_swap }, { "raise", luaA_client_raise }, { "lower", luaA_client_lower }, - { "redraw", luaA_client_redraw }, { "unmanage", luaA_client_unmanage }, { "__gc", luaA_client_gc }, { NULL, NULL }