compile fix: typecasting

This commit is contained in:
Mathias Gumz 2011-03-23 11:32:27 +01:00
parent 5d6e712aca
commit 8a7852021d

View file

@ -174,8 +174,8 @@ static void initXInfo(struct aXInfo* xi) {
xi->root = (Window*)calloc((size_t)xi->nr_screens, sizeof(Window));
xi->colormap = (Colormap*)calloc((size_t)xi->nr_screens, sizeof(Colormap));
xi->cursor = (Cursor*)calloc((size_t)xi->nr_screens, sizeof(Cursor));
xi->width_of_root = calloc(xi->nr_screens, sizeof(int));
xi->height_of_root = calloc(xi->nr_screens, sizeof(int));
xi->width_of_root = (int*)calloc(xi->nr_screens, sizeof(int));
xi->height_of_root = (int*)calloc(xi->nr_screens, sizeof(int));
}
{
XWindowAttributes xgwa;
@ -314,6 +314,11 @@ static int eventLoop(struct aOpts* opts, struct aXInfo* xi) {
break;
}
break;
case Expose: {
XExposeEvent* eev = (XExposeEvent*)&ev;
XClearWindow(xi->display, eev->window);
}
break;
default:
break;
}