Move XCB-Event-Handling to xcb.c

This commit is contained in:
Axel Wagner
2010-07-27 10:18:29 +02:00
parent ff2ee04e0d
commit 71cb49b847
2 changed files with 6 additions and 5 deletions

View File

@ -20,7 +20,11 @@ uint32_t get_colorpixel(const char *s) {
}
void handle_xcb_event(xcb_generic_event_t ev) {
switch (event->response_type & ~0x80) {
case XCB_EXPOSE:
draw_buttons();
break;
}
}
int get_string_width(char *string) {