@Override
    public void updurgency(HWindow wnd, int level) {
        if ((wnd == awnd) && !folded)
            level = -1;
        if (level == -1) {
            if (wnd.urgent == 0)
                return;
            wnd.urgent = 0;
        } else {
            if (wnd.urgent >= level)
                return;
            wnd.urgent = level;
        }
        Button b = btns.get(wnd);
        b.change(wnd.title, SlenHud.urgcols[wnd.urgent]);
        int max = 0;
        for (HWindow w : wnds) {
            if (w.urgent > max)
                max = w.urgent;
        }
        urgency = (level > 0) ? level : 0;
    }