awful: button handle enter if mouse button pushed
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
8b5fe6f30f
commit
ba20d32d10
|
@ -1601,6 +1601,7 @@ function widget.button(args)
|
|||
w.text = img_release
|
||||
w:buttons({ capi.button({}, 1, function () w.text = img_press end, function () w.text = img_release end) })
|
||||
function w.mouse_leave(s) w.text = img_release end
|
||||
function w.mouse_enter(s) if capi.mouse.coords().buttons[1] then w.text = img_press end end
|
||||
return w
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue