X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=scrotwm.c;h=28f71b2c913f35a650c380b9fcc7703a0587445d;hb=4e54852f687637e770258759ac44dd611af1d1a1;hp=55b889699c04a9c6d0c5ca0bebb2c30f9f24393b;hpb=6d109bd69200cccec6ec77834195af993dfa6b7b;p=spectrwm.git diff --git a/scrotwm.c b/scrotwm.c index 55b8896..28f71b2 100644 --- a/scrotwm.c +++ b/scrotwm.c @@ -179,7 +179,7 @@ XGCValues bar_gcv; int bar_fidx = 0; XFontStruct *bar_fs; char *bar_fonts[] = { - "-*-terminus-*-*-*-*-*-*-*-*-*-*-*-*", + "-*-terminus-medium-*-*-*-*-*-*-*-*-*-*-*", "-*-times-medium-r-*-*-*-*-*-*-*-*-*-*", NULL }; @@ -2486,13 +2486,15 @@ configurenotify(XEvent *e) DNPRINTF(SWM_D_EVENT, "configurenotify: window: %lu\n", e->xconfigure.window); + XMapWindow(display, e->xconfigure.window); win = find_window(e->xconfigure.window); - XMapWindow(display, win->id); - XGetWMNormalHints(display, win->id, &win->sh, &mask); - adjust_font(win); - XMapWindow(display, win->id); - if (font_adjusted) - stack(); + if (win) { + XGetWMNormalHints(display, win->id, &win->sh, &mask); + adjust_font(win); + XMapWindow(display, win->id); + if (font_adjusted) + stack(); + } } void