awful.titlebar: Pull in missing dependencies and grab theme details

Modules beautiful and widget are required by the titlebar:
 * beautiful to retrieve theme details
 * widget for the buttons

Signed-off-by: Thomas Harning Jr <harningt@gmail.com>
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Thomas Harning Jr 2008-10-09 10:27:37 -04:00 committed by Julien Danjou
parent 3c1f516758
commit 946b38147e
1 changed files with 3 additions and 0 deletions

View File

@ -15,8 +15,10 @@ local capi =
button = button,
client = client,
}
local beautiful = require("awful.beautiful")
local hooks = require("awful.hooks")
local util = require("awful.util")
local widget = require("awful.widget")
--- Titlebar module for awful
module("awful.titlebar")
@ -35,6 +37,7 @@ local data = otable()
function add(c, args)
if not c or c.type ~= "normal" then return end
if not args then args = {} end
local theme = beautiful.get()
-- Store colors
data[c] = {}
data[c].fg = args.fg or theme.titlebar_fg_normal or theme.fg_normal