titlebar: fix titlebar buttons

Signed-off-by: Gregor Best <gbe@intepi.net>
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Gregor Best 2009-08-04 21:04:32 +02:00 committed by Julien Danjou
parent 62e73e9eaf
commit 6ca1732683
1 changed files with 5 additions and 5 deletions

View File

@ -17,7 +17,7 @@ local capi =
widget = widget,
client = client,
}
local button = require("awful.button")
local abutton = require("awful.button")
local beautiful = require("beautiful")
local hooks = require("awful.hooks")
local util = require("awful.util")
@ -81,9 +81,9 @@ function add(c, args)
-- Redirect relevant events to the client the titlebar belongs to
title.buttons = util.table.join(
button({ }, 1, button_callback_focus_raise_move),
button({ args.modkey }, 1, button_callback_move),
button({ args.modkey }, 3, button_callback_resize))
abutton({ }, 1, button_callback_focus_raise_move),
abutton({ args.modkey }, 1, button_callback_move),
abutton({ args.modkey }, 3, button_callback_resize))
local appicon = capi.widget({ type = "imagebox" })
appicon.image = c.icon
@ -185,7 +185,7 @@ local function button_new(c, name, modkey, theme, state)
local button = widget.button({ image = img })
if not button then return end
button.buttons = util.table.join(button.buttons, button({ }, 1, nil, state.action))
button.buttons = util.table.join(button.buttons, abutton({ }, 1, nil, state.action))
button.visible = false
return button