widget: changing mouse enter/leave does not need redraw
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
3aa407b742
commit
2b2aec0725
4
widget.c
4
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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue