From 946b38147ed7533dbb6b73f1465ebc0f19a4052d Mon Sep 17 00:00:00 2001 From: Thomas Harning Jr Date: Thu, 9 Oct 2008 10:27:37 -0400 Subject: [PATCH] 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 Signed-off-by: Julien Danjou --- lib/awful/titlebar.lua.in | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/awful/titlebar.lua.in b/lib/awful/titlebar.lua.in index 090f3913e..e5cb0901c 100644 --- a/lib/awful/titlebar.lua.in +++ b/lib/awful/titlebar.lua.in @@ -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