little style fixes
This commit is contained in:
@ -146,7 +146,7 @@ void handle_signal(int sig, siginfo_t *info, void *data) {
|
||||
int height = 13 + (crash_text_num * config.font.height);
|
||||
|
||||
/* calculate width for longest text */
|
||||
int text_len = strlen(crash_text[crash_text_longest]);
|
||||
size_t text_len = strlen(crash_text[crash_text_longest]);
|
||||
xcb_char2b_t *longest_text = convert_utf8_to_ucs2(crash_text[crash_text_longest], &text_len);
|
||||
int font_width = predict_text_width((char *)longest_text, text_len, true);
|
||||
int width = font_width + 20;
|
||||
|
@ -68,7 +68,7 @@ void window_update_name(i3Window *win, xcb_get_property_reply_t *prop, bool befo
|
||||
return;
|
||||
}
|
||||
/* Convert it to UCS-2 here for not having to convert it later every time we want to pass it to X */
|
||||
int len;
|
||||
size_t len;
|
||||
xcb_char2b_t *ucs2_name = convert_utf8_to_ucs2(new_name, &len);
|
||||
if (ucs2_name == NULL) {
|
||||
LOG("Could not convert _NET_WM_NAME to UCS-2, ignoring new hint\n");
|
||||
|
Reference in New Issue
Block a user