awful: refuse to set titlebar on no-normal windows

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2008-09-03 15:15:00 +02:00
parent 8b21d64df6
commit 5bacb52ee3
1 changed files with 1 additions and 0 deletions

View File

@ -1477,6 +1477,7 @@ end
-- fg_focus: the foreground color for focused window.
-- fg_focus: the background color for focused window.
function titlebar.add(c, args)
if not c or c.type ~= "normal" then return end
if not args then args = {} end
-- Store colors
titlebar.data[c] = {}