switch(type) { case Qevent: if(c->flag & COPEN) { if(c->flag & COPEN){ eventinuse = 0; } } break; }