client: remove redraw()

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2009-10-05 20:37:34 +02:00
parent 4aaf39a899
commit 6ee5122462
4 changed files with 0 additions and 35 deletions

View file

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

View file

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

View file

@ -89,8 +89,6 @@ Window manager control
Clients
~~~~~~~
*Mod4 + Shift + r*::
Redraw the focused window.
*Mod4 + m*::
Maximize client.
*Mod4 + n*::

View file

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