From 0a74d9e1270378a836a98f1e73d8e100ddd5d4d4 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Mon, 25 Aug 2008 14:35:42 +0200 Subject: [PATCH] awful: button reset on mouse leave Signed-off-by: Julien Danjou --- lib/awful.lua.in | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/awful.lua.in b/lib/awful.lua.in index ef11a1fd..d20751c5 100644 --- a/lib/awful.lua.in +++ b/lib/awful.lua.in @@ -1600,6 +1600,7 @@ function widget.button(args) local img_press = "" 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 return w end