I am creating a tasklist with drag and drop.
In the widget_template create_callback function I am using this code:
self:connect_signal("button::press",
function(_, lx, ly, button, mods)
capi.mousegrabber.run(
function()
return true
end, "hand")
end)
self:connect_signal("button::release",
function(_, lx, ly, button, mods)
capi.mousegrabber.stop()
end)
Mousegrabber does not stop when mouse is released and I don't understand why.