awful: fix titlebar creation

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2008-08-06 14:11:22 +02:00
parent ebb7000cee
commit 3b785d6f6c
1 changed files with 3 additions and 3 deletions

View File

@ -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)