wibox.drawable: Redraw when moved
commit873d41bb5b63cbaec298cc274724d6b65418a59d
authorUli Schlachter <psychon@znc.in>
Wed, 20 Feb 2013 13:22:41 +0000 (20 14:22 +0100)
committerUli Schlachter <psychon@znc.in>
Tue, 26 Feb 2013 10:21:48 +0000 (26 11:21 +0100)
tree80d87f8186d4ffe8909b0046e03109238db1fd2e
parent5a2c4fa928554801dfbd807ec0d1f2a62ef25a4e
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 <psychon@znc.in>
lib/wibox/drawable.lua.in