widget: invalidate on visible change

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2008-08-21 15:08:56 +02:00
parent c3a1e36be1
commit 3fbfd0658a
1 changed files with 6 additions and 4 deletions

View File

@ -70,7 +70,7 @@ widget_common_button_press(widget_node_t *w,
awesome_type_t type)
{
button_t *b;
for(b = w->widget->buttons; b; b = b->next)
if(ev->detail == b->button && XUTIL_MASK_CLEAN(ev->state) == b->mod && b->fct)
{
@ -143,7 +143,7 @@ widget_render(widget_node_t *wnode, draw_context_t *ctx, xcb_gcontext_t gc, xcb_
xcb_copy_area(globalconf.connection, rootpix,
rotate_px, gc,
x, y,
0, 0,
0, 0,
ctx->width, ctx->height);
break;
}
@ -395,10 +395,12 @@ luaA_widget_newindex(lua_State *L)
(*widget)->isvisible = luaA_checkboolean(L, 3);
return 0;
default:
break;
return (*widget)->newindex ? (*widget)->newindex(L, token) : 0;
}
return (*widget)->newindex ? (*widget)->newindex(L, token) : 0;
widget_invalidate_bywidget(*widget);
return 0;
}
/** Generic widget set.