textbox: overwrite extents to 0 on nil

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2008-08-15 01:11:39 +02:00
parent df79115dd1
commit 2dda972561
1 changed files with 2 additions and 0 deletions

View File

@ -157,6 +157,8 @@ luaA_textbox_newindex(lua_State *L, awesome_token_t token)
d->extents = draw_text_extents(globalconf.connection, globalconf.default_screen,
globalconf.font, d->text, d->len, &d->pdata).width;
}
else
d->extents = 0;
}
break;
case A_TK_WIDTH: