From 2b2aec072509a3c6441c542331d9de0e33112cb3 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Mon, 19 Jan 2009 17:15:58 +0100 Subject: [PATCH] widget: changing mouse enter/leave does not need redraw Signed-off-by: Julien Danjou --- widget.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/widget.c b/widget.c index 75e43b0b..4e90abe4 100644 --- a/widget.c +++ b/widget.c @@ -482,10 +482,10 @@ luaA_widget_newindex(lua_State *L) break; case A_TK_MOUSE_ENTER: luaA_registerfct(L, 3, &(*widget)->mouse_enter); - break; + return 0; case A_TK_MOUSE_LEAVE: luaA_registerfct(L, 3, &(*widget)->mouse_leave); - break; + return 0; default: return (*widget)->newindex ? (*widget)->newindex(L, token) : 0; }