At 1259270344 time_t, Julien Danjou wrote: > (I change the parent with my button 3 mouse, but you can't see it).
Test file attached. -- Julien Danjou // ᐰ <[email protected]> http://julien.danjou.info // 9A0D 5FD9 EB42 22F6 8974 C95C A462 B51E C2FE E5CD // Life is life. Lalalalala.
w1 = wibox { text = "a w e s o mmmmmmmmmmmmm e! it is ruly awesomeness inside!",
width = 150, height = 150, x = 100 , y = 120, fg = "white" , bg= "#aaaaaa33"
}
w2 = wibox { text = "w2!",
width = 30, height = 30, x = 20 , y = 10, fg = "black" , bg= "#ff000044" ,
parent = w1 }
w3 = wibox { text = "w3?",
width = 30, height = 30, x = 20 , y = 20, fg = "black" , bg= "#00ff0055" ,
parent = w1 }
wibox.connect_signal("mouse::enter", function (wib)
wib:raise()
end)
function repw1(wib, mod, button)
if button ~= 3 then return end
if wib.parent == w1 then
wib.parent = screen[1].root
else
wib.parent = w1
end
end
w2:connect_signal("button::press", repw1)
w3:connect_signal("button::press", repw1)
-- Wibox mover
wibox.connect_signal("mouse::move", function (wib, mod, x, y, rx, ry)
if mod.Button1 then
wib:geometry { x = rx - wib.parent:geometry().x,
y = ry - wib.parent:geometry().y }
end
end)
signature.asc
Description: Digital signature
