Use font-size to correctly determine the size of the bars and buttons.

This commit is contained in:
Axel Wagner
2010-07-27 02:16:49 +02:00
parent 3883ae2738
commit ff2ee04e0d
4 changed files with 56 additions and 17 deletions

View File

@ -15,6 +15,8 @@ xcb_atom_t atoms[NUM_ATOMS];
xcb_connection_t* xcb_connection;
xcb_screen_t* xcb_screens;
xcb_window_t xcb_root;
xcb_font_t xcb_font;
int font_height;
void init_xcb();
void clean_xcb();
@ -22,5 +24,6 @@ void get_atoms();
void destroy_windows();
void create_windows();
void draw_buttons();
int get_string_width(char *string);
#endif