client: deprecate minimize in favor of minimized
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
576a1e85fc
commit
e0de3b153e
4
client.c
4
client.c
|
@ -1435,6 +1435,8 @@ luaA_client_newindex(lua_State *L)
|
|||
}
|
||||
break;
|
||||
case A_TK_MINIMIZE:
|
||||
luaA_deprecate(L, "client.minimized");
|
||||
case A_TK_MINIMIZED:
|
||||
client_setminimized(*c, luaA_checkboolean(L, 3));
|
||||
break;
|
||||
case A_TK_FULLSCREEN:
|
||||
|
@ -1641,6 +1643,8 @@ luaA_client_index(lua_State *L)
|
|||
lua_pushboolean(L, (*c)->ishidden);
|
||||
break;
|
||||
case A_TK_MINIMIZE:
|
||||
luaA_deprecate(L, "client.minimized");
|
||||
case A_TK_MINIMIZED:
|
||||
lua_pushboolean(L, (*c)->isminimized);
|
||||
break;
|
||||
case A_TK_FULLSCREEN:
|
||||
|
|
|
@ -51,6 +51,7 @@ maximized_horizontal
|
|||
maximized_vertical
|
||||
middle
|
||||
minimize
|
||||
minimized
|
||||
Mod1
|
||||
Mod2
|
||||
Mod3
|
||||
|
|
|
@ -280,7 +280,7 @@ local function widget_tasklist_label_common(c, args)
|
|||
if c.floating and floating_icon then
|
||||
text = text.."<bg image=\"" .. floating_icon .. "\" align=\"" .. floating_icon_align .. "\"/>"
|
||||
end
|
||||
if c.minimize then
|
||||
if c.minimized then
|
||||
name = util.escape(c.icon_name) or ""
|
||||
else
|
||||
name = util.escape(c.name) or ""
|
||||
|
|
Loading…
Reference in New Issue