Add awful.titlebar.widget.minimizebutton

Signed-off-by: heithe <heithe01@gmail.com>
Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
heithe 2013-11-03 00:02:09 +01:00 committed by Uli Schlachter
parent 29ecc6095f
commit 80aa6b1922
1 changed files with 8 additions and 0 deletions

View File

@ -250,6 +250,14 @@ function titlebar.widget.maximizedbutton(c)
return widget
end
--- Create a new minimize button for a client.
-- @param c The client for which the button is wanted.
function titlebar.widget.minimizebutton(c)
local widget = titlebar.widget.button(c, "minimize", function() return c.minimized end, function(c) c.minimized = not c.minimized end)
c:connect_signal("property::minimized", widget.update)
return widget
end
--- Create a new closing button for a client.
-- @param c The client for which the button is wanted.
function titlebar.widget.closebutton(c)