From 3b785d6f6c9d095d1b64a9462a99251d2d021201 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Wed, 6 Aug 2008 14:11:22 +0200 Subject: [PATCH] awful: fix titlebar creation Signed-off-by: Julien Danjou --- lib/awful.lua.in | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/awful.lua.in b/lib/awful.lua.in index 0125f3f3f..45b022c8b 100644 --- a/lib/awful.lua.in +++ b/lib/awful.lua.in @@ -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)