mirror of
https://github.com/awesomeWM/awesome
synced 2024-11-17 07:47:41 +01:00
client: remove redraw()
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
4aaf39a899
commit
6ee5122462
4 changed files with 0 additions and 35 deletions
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -89,8 +89,6 @@ Window manager control
|
|||
|
||||
Clients
|
||||
~~~~~~~
|
||||
*Mod4 + Shift + r*::
|
||||
Redraw the focused window.
|
||||
*Mod4 + m*::
|
||||
Maximize client.
|
||||
*Mod4 + n*::
|
||||
|
|
|
@ -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 }
|
||||
|
|
Loading…
Reference in a new issue