I want to change/cover a client's content (in relation with a signal) : I just make a widget/wibox appear with the correct size and position.
So I put this in my manage
signal :
local w = wibox({
x = c.x,
y = c.y,
width = c.width,
height = c.height,
visible = false,
ontop = true,
widget = my_widget(c)
})
c.mawibox = w
As I unfocus the client, I toggle visibility : c.mawibox.visible = true
but when I leave current tag, the wibox is still appearing : how to attach visibility only for the client's window?
Is there another way to produce this effect? is it possible to add a Cairo surface on top of the client's content?