textbox: overwrite extents to 0 on nil
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
df79115dd1
commit
2dda972561
|
@ -157,6 +157,8 @@ luaA_textbox_newindex(lua_State *L, awesome_token_t token)
|
||||||
d->extents = draw_text_extents(globalconf.connection, globalconf.default_screen,
|
d->extents = draw_text_extents(globalconf.connection, globalconf.default_screen,
|
||||||
globalconf.font, d->text, d->len, &d->pdata).width;
|
globalconf.font, d->text, d->len, &d->pdata).width;
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
d->extents = 0;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case A_TK_WIDTH:
|
case A_TK_WIDTH:
|
||||||
|
|
Loading…
Reference in New Issue