From 873d41bb5b63cbaec298cc274724d6b65418a59d Mon Sep 17 00:00:00 2001 From: Uli Schlachter Date: Wed, 20 Feb 2013 14:22:41 +0100 Subject: [PATCH] wibox.drawable: Redraw when moved Let's consider the following notification: naughty.notify({ text = "foo", bg = "#88888888", timeout=1 }) naughty.notify({ text = "foo", bg = "#88888888", timeout=2 }) When the first notification disappears, the second one is moved and takes its place. However, its content was not redrawn. This makes the pseudo-transparency break and the wallpaper that is shown in the back of the notification doesn't match the real wallpaper. Fix this by redrawing drawables when they get moved. Signed-off-by: Uli Schlachter --- lib/wibox/drawable.lua.in | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/wibox/drawable.lua.in b/lib/wibox/drawable.lua.in index 774bf26d..49622f0c 100644 --- a/lib/wibox/drawable.lua.in +++ b/lib/wibox/drawable.lua.in @@ -230,6 +230,9 @@ function drawable.new(d, widget_arg) end drawables[ret.draw] = true d:connect_signal("property::surface", ret.draw) + -- We don't need width/height, because this case emits property::surface + d:connect_signal("property::x", ret.draw) + d:connect_signal("property::y", ret.draw) -- Set the default background ret:set_bg(beautiful.bg_normal)