334 |
|
hints->res_name = "BasiliskII"; |
335 |
|
hints->res_class = "BasiliskII"; |
336 |
|
XSetClassHint(x_display, w, hints); |
337 |
< |
XFree((char *)hints); |
337 |
> |
XFree(hints); |
338 |
|
} |
339 |
|
} |
340 |
|
|
347 |
|
hints->initial_state = NormalState; |
348 |
|
hints->flags = InputHint | StateHint; |
349 |
|
XSetWMHints(x_display, w, hints); |
350 |
< |
XFree((char *)hints); |
350 |
> |
XFree(hints); |
351 |
|
} |
352 |
|
} |
353 |
|
|
428 |
|
hints->max_height = height; |
429 |
|
hints->flags = PMinSize | PMaxSize; |
430 |
|
XSetWMNormalHints(x_display, the_win, hints); |
431 |
< |
XFree((char *)hints); |
431 |
> |
XFree(hints); |
432 |
|
} |
433 |
|
} |
434 |
|
|
954 |
|
keycode_init(); |
955 |
|
|
956 |
|
// Read prefs |
957 |
< |
mouse_wheel_mode = PrefsFindInt16("mousewheelmode"); |
958 |
< |
mouse_wheel_lines = PrefsFindInt16("mousewheellines"); |
957 |
> |
mouse_wheel_mode = PrefsFindInt32("mousewheelmode"); |
958 |
> |
mouse_wheel_lines = PrefsFindInt32("mousewheellines"); |
959 |
|
|
960 |
|
// Find screen and root window |
961 |
|
screen = XDefaultScreen(x_display); |