compile fix: typecasting
This commit is contained in:
parent
5d6e712aca
commit
8a7852021d
1 changed files with 7 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Reference in a new issue