public void updurgency(HWindow wnd, int level) {
        if ((wnd == awnd) && vc.c)
            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);
        if (urgcols[wnd.urgent] != null)
            b.change(wnd.title, urgcols[wnd.urgent]);
        else
            b.change(wnd.title);
        int max = 0;
        for (HWindow w : wnds) {
            if (w.urgent > max)
                max = w.urgent;
        }
        fb.urgency = max;
    }