refactor: trim popup and XIM helpers
This commit is contained in:
5
win.c
5
win.c
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user