Lines Matching refs:ev
155 XEvent ev;
156 XtAppNextEvent( appCtx, &ev );
157 if (ev.type == KeyPress) {
158 lastInput.win = ev.xany.window;
159 lastInput.x = ev.xkey.x_root;
160 lastInput.y = ev.xkey.y_root;
161 } else if (ev.type == ButtonPress) {
162 lastInput.win = ev.xany.window;
163 lastInput.x = ev.xbutton.x_root;
164 lastInput.y = ev.xbutton.y_root;
166 XtDispatchEvent( &ev );