refactor: trim popup and XIM helpers

This commit is contained in:
2026-08-12 17:33:14 +09:00
parent 8d68e00f2b
commit de536da0bb
6 changed files with 12 additions and 27 deletions

5
win.c
View File

@@ -16,8 +16,6 @@ static xcb_pixmap_t pix;
static u32int *img;
static int depth;
extern int fontready(void);
static xcb_screen_t*
getscr(xcb_connection_t *c, int n)
{
@@ -142,8 +140,7 @@ wininit(void)
mask = XCB_CW_BACK_PIXMAP;
xcb_change_window_attributes(conn, win, mask, &pix);
img = emalloc(Imgw * Imgh * sizeof(img[0]));
fontinit(fontdir);
if(!fontready()){
if(!fontinit(fontdir)){
fprint(2, "strans: popup disabled: no usable fonts\n");
wincleanup();
return 0;