Lines Matching refs:qelt
733 register _XQEvent *qelt;
736 if ((qelt = dpy->qfree)) {
738 dpy->qfree = qelt->next;
740 else if ((qelt = Xmalloc(sizeof(_XQEvent))) == NULL) {
746 qelt->next = NULL;
751 qelt->event.type = type;
756 * If the generic_event_vec is called, qelt->event is a event cookie
761 XGenericEventCookie *cookie = &qelt->event.xcookie;
765 qelt->qserial_num = dpy->next_event_serial_num++;
766 if (dpy->tail) dpy->tail->next = qelt;
767 else dpy->head = qelt;
769 dpy->tail = qelt;
771 } else if ((*dpy->event_vec[type])(dpy, &qelt->event, event)) {
772 qelt->qserial_num = dpy->next_event_serial_num++;
773 if (dpy->tail) dpy->tail->next = qelt;
774 else dpy->head = qelt;
776 dpy->tail = qelt;
780 qelt->next = dpy->qfree;
781 dpy->qfree = qelt;
790 register _XQEvent *prev, /* element before qelt */
791 register _XQEvent *qelt) /* element to be unlinked */
794 if ((prev->next = qelt->next) == NULL)
798 if ((dpy->head = qelt->next) == NULL)
801 qelt->qserial_num = 0;
802 qelt->next = dpy->qfree;
803 dpy->qfree = qelt;
806 if (_XIsEventCookie(dpy, &qelt->event)) {
807 XGenericEventCookie* cookie = &qelt->event.xcookie;