public boolean mouseup(Coord c, int button) {
        if ((folded) && (c.isect(Coord.z.add(cl.sz()), isz))) {
            setfold(false);
            return true;
        }

        if (dm) {
            ui.grabmouse(null);
            dm = false;
            Config.setWindowOpt("chat_pos" + (folded ? "_folded" : ""), this.c.toString());
        } else if (rsm) {
            ui.grabmouse(null);
            rsm = false;
            Config.setWindowOpt("chat_size", this.sz.toString());
        } else {
            super.mouseup(c, button);
        }
        return (true);
    }