awful: fix titlebar creation
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
ebb7000cee
commit
3b785d6f6c
|
@ -1095,12 +1095,12 @@ function titlebar.add(c, args)
|
|||
tb:widget_add(capi.widget({ type = "appicon", name = "appicon", align = "left" }))
|
||||
|
||||
local title = capi.widget({ type = "textbox", name = "title", align = "flex" })
|
||||
title:mouse_add(mouse({ args.modkey }, 1, function (t) t:client_get():mouse_move() end))
|
||||
title:mouse_add(mouse({ args.modkey }, 3, function (t) t:client_get():mouse_resize() end))
|
||||
title:mouse_add(capi.mouse({ }, 1, function (t) t:client_get():mouse_move() end))
|
||||
title:mouse_add(capi.mouse({ args.modkey }, 3, function (t) t:client_get():mouse_resize() end))
|
||||
tb:widget_add(title)
|
||||
|
||||
local close_button= capi.widget({ type = "textbox", name = "close", align = "right" })
|
||||
close_button:mouse_add(mouse({ }, 1, function (t) t:client_get():kill() end))
|
||||
close_button:mouse_add(capi.mouse({ }, 1, function (t) t:client_get():kill() end))
|
||||
tb:widget_add(close_button)
|
||||
|
||||
titlebar.update(c)
|
||||
|
|
Loading…
Reference in New Issue