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:
parent
29ecc6095f
commit
80aa6b1922
|
@ -250,6 +250,14 @@ function titlebar.widget.maximizedbutton(c)
|
||||||
return widget
|
return widget
|
||||||
end
|
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.
|
--- Create a new closing button for a client.
|
||||||
-- @param c The client for which the button is wanted.
|
-- @param c The client for which the button is wanted.
|
||||||
function titlebar.widget.closebutton(c)
|
function titlebar.widget.closebutton(c)
|
||||||
|
|
Loading…
Reference in New Issue