Lines Matching refs:ev

618     XGenericEventCookie ev;
624 _XIsEventCookie(Display *dpy, XEvent *ev)
626 return (ev->xcookie.type == GenericEvent &&
627 dpy->generic_event_vec[ev->xcookie.extension & 0x7F] != NULL);
644 XFree(e->ev.data);
671 add->ev = *cookie;
680 _XFetchEventCookie(Display *dpy, XGenericEventCookie* ev)
686 if (!_XIsEventCookie(dpy, (XEvent*)ev))
690 if (event->ev.cookie == ev->cookie &&
691 event->ev.extension == ev->extension &&
692 event->ev.evtype == ev->evtype) {
693 *ev = event->ev;
898 register XKeyEvent *ev = (XKeyEvent*) re;
899 ev->root = event->u.keyButtonPointer.root;
900 ev->window = event->u.keyButtonPointer.event;
901 ev->subwindow = event->u.keyButtonPointer.child;
902 ev->time = event->u.keyButtonPointer.time;
903 ev->x = cvtINT16toInt(event->u.keyButtonPointer.eventX);
904 ev->y = cvtINT16toInt(event->u.keyButtonPointer.eventY);
905 ev->x_root = cvtINT16toInt(event->u.keyButtonPointer.rootX);
906 ev->y_root = cvtINT16toInt(event->u.keyButtonPointer.rootY);
907 ev->state = event->u.keyButtonPointer.state;
908 ev->same_screen = event->u.keyButtonPointer.sameScreen;
909 ev->keycode = event->u.u.detail;
915 register XButtonEvent *ev = (XButtonEvent *) re;
916 ev->root = event->u.keyButtonPointer.root;
917 ev->window = event->u.keyButtonPointer.event;
918 ev->subwindow = event->u.keyButtonPointer.child;
919 ev->time = event->u.keyButtonPointer.time;
920 ev->x = cvtINT16toInt(event->u.keyButtonPointer.eventX);
921 ev->y = cvtINT16toInt(event->u.keyButtonPointer.eventY);
922 ev->x_root = cvtINT16toInt(event->u.keyButtonPointer.rootX);
923 ev->y_root = cvtINT16toInt(event->u.keyButtonPointer.rootY);
924 ev->state = event->u.keyButtonPointer.state;
925 ev->same_screen = event->u.keyButtonPointer.sameScreen;
926 ev->button = event->u.u.detail;
931 register XMotionEvent *ev = (XMotionEvent *)re;
932 ev->root = event->u.keyButtonPointer.root;
933 ev->window = event->u.keyButtonPointer.event;
934 ev->subwindow = event->u.keyButtonPointer.child;
935 ev->time = event->u.keyButtonPointer.time;
936 ev->x = cvtINT16toInt(event->u.keyButtonPointer.eventX);
937 ev->y = cvtINT16toInt(event->u.keyButtonPointer.eventY);
938 ev->x_root = cvtINT16toInt(event->u.keyButtonPointer.rootX);
939 ev->y_root = cvtINT16toInt(event->u.keyButtonPointer.rootY);
940 ev->state = event->u.keyButtonPointer.state;
941 ev->same_screen = event->u.keyButtonPointer.sameScreen;
942 ev->is_hint = event->u.u.detail;
948 register XCrossingEvent *ev = (XCrossingEvent *) re;
949 ev->root = event->u.enterLeave.root;
950 ev->window = event->u.enterLeave.event;
951 ev->subwindow = event->u.enterLeave.child;
952 ev->time = event->u.enterLeave.time;
953 ev->x = cvtINT16toInt(event->u.enterLeave.eventX);
954 ev->y = cvtINT16toInt(event->u.enterLeave.eventY);
955 ev->x_root = cvtINT16toInt(event->u.enterLeave.rootX);
956 ev->y_root = cvtINT16toInt(event->u.enterLeave.rootY);
957 ev->state = event->u.enterLeave.state;
958 ev->mode = event->u.enterLeave.mode;
959 ev->same_screen = (event->u.enterLeave.flags &
961 ev->focus = (event->u.enterLeave.flags &
963 ev->detail = event->u.u.detail;
969 register XFocusChangeEvent *ev = (XFocusChangeEvent *) re;
970 ev->window = event->u.focus.window;
971 ev->mode = event->u.focus.mode;
972 ev->detail = event->u.u.detail;
977 register XKeymapEvent *ev = (XKeymapEvent *) re;
978 ev->window = None;
979 memcpy(&ev->key_vector[1],
986 register XExposeEvent *ev = (XExposeEvent *) re;
987 ev->window = event->u.expose.window;
988 ev->x = event->u.expose.x;
989 ev->y = event->u.expose.y;
990 ev->width = event->u.expose.width;
991 ev->height = event->u.expose.height;
992 ev->count = event->u.expose.count;
997 register XGraphicsExposeEvent *ev =
999 ev->drawable = event->u.graphicsExposure.drawable;
1000 ev->x = event->u.graphicsExposure.x;
1001 ev->y = event->u.graphicsExposure.y;
1002 ev->width = event->u.graphicsExposure.width;
1003 ev->height = event->u.graphicsExposure.height;
1004 ev->count = event->u.graphicsExposure.count;
1005 ev->major_code = event->u.graphicsExposure.majorEvent;
1006 ev->minor_code = event->u.graphicsExposure.minorEvent;
1011 register XNoExposeEvent *ev = (XNoExposeEvent *) re;
1012 ev->drawable = event->u.noExposure.drawable;
1013 ev->major_code = event->u.noExposure.majorEvent;
1014 ev->minor_code = event->u.noExposure.minorEvent;
1019 register XVisibilityEvent *ev = (XVisibilityEvent *) re;
1020 ev->window = event->u.visibility.window;
1021 ev->state = event->u.visibility.state;
1026 register XCreateWindowEvent *ev =
1028 ev->window = event->u.createNotify.window;
1029 ev->parent = event->u.createNotify.parent;
1030 ev->x = cvtINT16toInt(event->u.createNotify.x);
1031 ev->y = cvtINT16toInt(event->u.createNotify.y);
1032 ev->width = event->u.createNotify.width;
1033 ev->height = event->u.createNotify.height;
1034 ev->border_width = event->u.createNotify.borderWidth;
1035 ev->override_redirect = event->u.createNotify.override;
1040 register XDestroyWindowEvent *ev =
1042 ev->window = event->u.destroyNotify.window;
1043 ev->event = event->u.destroyNotify.event;
1048 register XUnmapEvent *ev = (XUnmapEvent *) re;
1049 ev->window = event->u.unmapNotify.window;
1050 ev->event = event->u.unmapNotify.event;
1051 ev->from_configure = event->u.unmapNotify.fromConfigure;
1056 register XMapEvent *ev = (XMapEvent *) re;
1057 ev->window = event->u.mapNotify.window;
1058 ev->event = event->u.mapNotify.event;
1059 ev->override_redirect = event->u.mapNotify.override;
1064 register XMapRequestEvent *ev = (XMapRequestEvent *) re;
1065 ev->window = event->u.mapRequest.window;
1066 ev->parent = event->u.mapRequest.parent;
1071 register XReparentEvent *ev = (XReparentEvent *) re;
1072 ev->event = event->u.reparent.event;
1073 ev->window = event->u.reparent.window;
1074 ev->parent = event->u.reparent.parent;
1075 ev->x = cvtINT16toInt(event->u.reparent.x);
1076 ev->y = cvtINT16toInt(event->u.reparent.y);
1077 ev->override_redirect = event->u.reparent.override;
1082 register XConfigureEvent *ev = (XConfigureEvent *) re;
1083 ev->event = event->u.configureNotify.event;
1084 ev->window = event->u.configureNotify.window;
1085 ev->above = event->u.configureNotify.aboveSibling;
1086 ev->x = cvtINT16toInt(event->u.configureNotify.x);
1087 ev->y = cvtINT16toInt(event->u.configureNotify.y);
1088 ev->width = event->u.configureNotify.width;
1089 ev->height = event->u.configureNotify.height;
1090 ev->border_width = event->u.configureNotify.borderWidth;
1091 ev->override_redirect = event->u.configureNotify.override;
1096 register XConfigureRequestEvent *ev =
1098 ev->window = event->u.configureRequest.window;
1099 ev->parent = event->u.configureRequest.parent;
1100 ev->above = event->u.configureRequest.sibling;
1101 ev->x = cvtINT16toInt(event->u.configureRequest.x);
1102 ev->y = cvtINT16toInt(event->u.configureRequest.y);
1103 ev->width = event->u.configureRequest.width;
1104 ev->height = event->u.configureRequest.height;
1105 ev->border_width = event->u.configureRequest.borderWidth;
1106 ev->value_mask = event->u.configureRequest.valueMask;
1107 ev->detail = event->u.u.detail;
1112 register XGravityEvent *ev = (XGravityEvent *) re;
1113 ev->window = event->u.gravity.window;
1114 ev->event = event->u.gravity.event;
1115 ev->x = cvtINT16toInt(event->u.gravity.x);
1116 ev->y = cvtINT16toInt(event->u.gravity.y);
1121 register XResizeRequestEvent *ev =
1123 ev->window = event->u.resizeRequest.window;
1124 ev->width = event->u.resizeRequest.width;
1125 ev->height = event->u.resizeRequest.height;
1130 register XCirculateEvent *ev = (XCirculateEvent *) re;
1131 ev->window = event->u.circulate.window;
1132 ev->event = event->u.circulate.event;
1133 ev->place = event->u.circulate.place;
1138 register XCirculateRequestEvent *ev =
1140 ev->window = event->u.circulate.window;
1141 ev->parent = event->u.circulate.event;
1142 ev->place = event->u.circulate.place;
1147 register XPropertyEvent *ev = (XPropertyEvent *) re;
1148 ev->window = event->u.property.window;
1149 ev->atom = event->u.property.atom;
1150 ev->time = event->u.property.time;
1151 ev->state = event->u.property.state;
1156 register XSelectionClearEvent *ev =
1158 ev->window = event->u.selectionClear.window;
1159 ev->selection = event->u.selectionClear.atom;
1160 ev->time = event->u.selectionClear.time;
1165 register XSelectionRequestEvent *ev =
1167 ev->owner = event->u.selectionRequest.owner;
1168 ev->requestor = event->u.selectionRequest.requestor;
1169 ev->selection = event->u.selectionRequest.selection;
1170 ev->target = event->u.selectionRequest.target;
1171 ev->property = event->u.selectionRequest.property;
1172 ev->time = event->u.selectionRequest.time;
1177 register XSelectionEvent *ev = (XSelectionEvent *) re;
1178 ev->requestor = event->u.selectionNotify.requestor;
1179 ev->selection = event->u.selectionNotify.selection;
1180 ev->target = event->u.selectionNotify.target;
1181 ev->property = event->u.selectionNotify.property;
1182 ev->time = event->u.selectionNotify.time;
1187 register XColormapEvent *ev = (XColormapEvent *) re;
1188 ev->window = event->u.colormap.window;
1189 ev->colormap = event->u.colormap.colormap;
1190 ev->new = event->u.colormap.new;
1191 ev->state = event->u.colormap.state;
1197 register XClientMessageEvent *ev
1199 ev->window = event->u.clientMessage.window;
1200 ev->format = event->u.u.detail;
1201 switch (ev->format) {
1203 ev->message_type = event->u.clientMessage.u.b.type;
1205 ev->data.b[i] = event->u.clientMessage.u.b.bytes[i];
1208 ev->message_type = event->u.clientMessage.u.s.type;
1209 ev->data.s[0] = cvtINT16toShort(event->u.clientMessage.u.s.shorts0);
1210 ev->data.s[1] = cvtINT16toShort(event->u.clientMessage.u.s.shorts1);
1211 ev->data.s[2] = cvtINT16toShort(event->u.clientMessage.u.s.shorts2);
1212 ev->data.s[3] = cvtINT16toShort(event->u.clientMessage.u.s.shorts3);
1213 ev->data.s[4] = cvtINT16toShort(event->u.clientMessage.u.s.shorts4);
1214 ev->data.s[5] = cvtINT16toShort(event->u.clientMessage.u.s.shorts5);
1215 ev->data.s[6] = cvtINT16toShort(event->u.clientMessage.u.s.shorts6);
1216 ev->data.s[7] = cvtINT16toShort(event->u.clientMessage.u.s.shorts7);
1217 ev->data.s[8] = cvtINT16toShort(event->u.clientMessage.u.s.shorts8);
1218 ev->data.s[9] = cvtINT16toShort(event->u.clientMessage.u.s.shorts9);
1221 ev->message_type = event->u.clientMessage.u.l.type;
1222 ev->data.l[0] = cvtINT32toLong(event->u.clientMessage.u.l.longs0);
1223 ev->data.l[1] = cvtINT32toLong(event->u.clientMessage.u.l.longs1);
1224 ev->data.l[2] = cvtINT32toLong(event->u.clientMessage.u.l.longs2);
1225 ev->data.l[3] = cvtINT32toLong(event->u.clientMessage.u.l.longs3);
1226 ev->data.l[4] = cvtINT32toLong(event->u.clientMessage.u.l.longs4);
1235 register XMappingEvent *ev = (XMappingEvent *)re;
1236 ev->window = 0;
1237 ev->first_keycode = event->u.mappingNotify.firstKeyCode;
1238 ev->request = event->u.mappingNotify.request;
1239 ev->count = event->u.mappingNotify.count;