cache text_width for named workspaces, fix memory leak

This commit is contained in:
Michael Stapelberg
2009-08-02 21:32:35 +02:00
parent 188629ddcd
commit a753684ac5
4 changed files with 12 additions and 6 deletions

View File

@ -171,6 +171,9 @@ struct Workspace {
/** Length of the workspaces name (in glyphs) */
int name_len;
/** Width of the workspaces name (in pixels) rendered in config.font */
int text_width;
/** x, y, width, height */
Rect rect;