Update titlebar color when focus changes (FS#1056)
commite24c09e828bc15cc75a1eb340060fd1e666e866c
authorUli Schlachter <psychon@znc.in>
Thu, 29 Nov 2012 15:52:19 +0000 (29 16:52 +0100)
committerUli Schlachter <psychon@znc.in>
Thu, 29 Nov 2012 15:52:19 +0000 (29 16:52 +0100)
treeb27c6cd1081d96460f89baf3b57a7f85bdd44f6a
parentc50d62749bbfa103e8a0669cb2d9081a4fddc485
Update titlebar color when focus changes (FS#1056)

The current code relied on some widget to cause a redraw when the focus changes.
Obviously, this assumption is wrong.

Instead, the code now uses the proper "focus" and "unfocus" signals for setting
titlebar colors, but it also needs to set these colors when a new titlebar is
created (v1 of this patch forgot that). For this reason, update_colors has to be
saved for when a titlebar's colors are updated.

This commit also reverts the ugly redraw_hook hack from commit a1918b8306f3a03.

Signed-off-by: Uli Schlachter <psychon@znc.in>
lib/awful/titlebar.lua.in
lib/wibox/drawable.lua.in