rem: if (flags & WFontSettings) { menu->flags.realized = 0; wMenuRealize(menu); } if (flags & WTextureSettings) { menu->frame->flags.need_texture_remake = 1; } if (flags & (WColorSettings|WTextureSettings)) { #ifdef DRAWSTRING_PLUGIN XClearWindow(dpy, menu->frame->titlebar->window); #endif wFrameWindowPaint(menu->frame); }
add: if (flags & WFontSettings) { menu->flags.realized = 0; wMenuRealize(menu); } if (flags & WTextureSettings) { menu->frame->flags.need_texture_remake = 1; } if (flags & (WColorSettings|WTextureSettings)) { wFrameWindowPaint(menu->frame); }
context: appearanceObserver(void *self, WMNotification *notif){    WMenu *menu = (WMenu*)self;    int flags = (int)WMGetNotificationClientData(notif);    if (!menu->flags.realized)        return;    if (WMGetNotificationName(notif) == WNMenuAppearanceSettingsChanged) {        if (flags & WFontSettings) {            menu->flags.realized = 0;            wMenuRealize(menu);        }        if (flags & WTextureSettings) {            if (!menu->flags.brother)                updateTexture(menu);        }        if (flags & (WTextureSettings|WColorSettings)) {            wMenuPaint(menu);        }    } else if (menu->flags.titled) {        if (flags & WFontSettings) {            menu->flags.realized = 0;            wMenuRealize(menu);        }        if (flags & WTextureSettings) {            menu->frame->flags.need_texture_remake = 1;        }        if (flags & (WColorSettings|WTextureSettings)) {#ifdef DRAWSTRING_PLUGIN            XClearWindow(dpy, menu->frame->titlebar->window);#endif            wFrameWindowPaint(menu->frame);        }    }}