Lines Matching defs:xev

733 shouldDispatchToWidget(XEvent * xev)
749 switch (xev->type) {
752 win = xev->xkey.window;
756 win = xev->xfocus.window;
760 win = xev->xbutton.window;
763 win = xev->xmotion.window;
767 win = xev->xcrossing.window;
777 if (xev->type == KeyPress || xev->type == KeyRelease) {
817 win = xev->xkey.window = XtWindow(focusWidget);
854 awt_canvas_handleEvent(drag_source, peer, xev, winfo, &cont, TRUE);
873 switch (xev->type) {
923 if (xev->type == EnterNotify) {
929 awt_canvas_handleEvent(widget, peer, xev, winfo, &cont, TRUE);
1415 focusEventForProxy(XEvent xev,
1421 if (xev.type == FocusOut) {
1422 if (xev.xfocus.window == *focusProxyWindow) {
1461 focusEventForFrame(XEvent xev, Window focusProxyWindow) {
1462 if (xev.type == FocusIn) {
1467 XtDispatchEvent(&xev);
1470 XtDispatchEvent(&xev);
1475 focusEventForWindow(XEvent xev, JNIEnv *env, Window *trueFocusWindow,
1478 if (xev.type == FocusIn && xev.xfocus.mode == NotifyNormal) {
1484 XtDispatchEvent(&xev);
1493 XNextEvent(awt_display, &xev);
1496 *trueFocusWindow = xev.xany.window;
1502 if (xev.xany.send_event) {
1503 XtDispatchEvent(&xev);
1615 XEvent xev;
1619 if (awt_get_next_put_back_event(&xev) == 0) {
1620 if (xev.xany.send_event != SPECIAL_KEY_EVENT) {
1622 if (xev.type == FocusOut) {
1625 xev.xfocus.window, xev.xfocus.mode,
1626 xev.xfocus.detail, xev.xfocus.send_event);
1630 XtDispatchEvent(&xev);
1638 if (haveEvent || XtAppPeekEvent(awt_appContext, &xev)) {
1644 Widget widget=XtWindowToWidget(awt_display, xev.xany.window);
1647 statusWindowEventHandler(xev);
1649 xembed_eventHandler(&xev);
1650 xembed_serverEventHandler(&xev);
1651 syncWait_eventHandler(&xev);
1653 if (!haveEvent && awt_dnd_process_event(&xev)) {
1667 XNextEvent(awt_display, &xev);
1671 if (awt_util_processEventForEmbeddedFrame(&xev)) {
1676 if (awt_mgrsel_processEvent(&xev)) {
1687 (void) XFilterEvent(&xev, NULL);
1692 switch (xev.type) {
1707 if ((xev.type == ButtonPress ||
1708 xev.type == ButtonRelease ||
1709 (xev.type == MotionNotify &&
1710 (xev.xmotion.state == Button1Mask ||
1711 xev.xmotion.state == Button2Mask ||
1712 xev.xmotion.state == Button3Mask))) &&
1720 XNextEvent(awt_display, &xev);
1722 XtDispatchEvent(&xev);
1728 if (xev.type == ButtonPress && grabbed_widget != NULL) {
1729 eventInsideGrabbed(&xev);
1733 if (!haveEvent) XtAppNextEvent(awt_appContext, &xev);
1738 /* if (grabbed_widget != NULL && !eventInsideGrabbed(&xev)) { */
1742 if (xev.type == ButtonPress) {
1743 Window window = findShellByProxy(xev.xbutton.window);
1753 if(xev.type == KeyPress) {
1755 printf("KeyPress on window %d\n", xev.xany.window);
1762 if ((xev.type == KeyPress || xev.type == KeyRelease) &&
1770 xev.xany.window = proxyTopLevel(focusProxyWindow);
1772 xev.xany.window);
1777 awt_canvas_handleEvent(widget, winfo->peer, &xev,
1782 if (!shouldDispatchToWidget(&xev)) {
1783 XtDispatchEvent(&xev);
1787 if (grabbed_widget != NULL && xev.type == ButtonPress) {
1788 eventInsideGrabbed(&xev);
1803 if (xev.type == FocusIn) {
1806 "send_event %d\n", xev.xfocus.window,
1807 xev.xfocus.mode, xev.xfocus.detail,
1808 xev.xfocus.send_event);
1811 "send_event %d\n", xev.xfocus.window,
1812 xev.xfocus.mode, xev.xfocus.detail,
1813 xev.xfocus.send_event);
1816 XtAppNextEvent(awt_appContext, &xev);
1818 if (xev.xfocus.detail == NotifyVirtual ||
1819 xev.xfocus.detail == NotifyNonlinearVirtual) {
1828 if (isXEmbedActiveByWindow(xev.xfocus.window) && !xev.xfocus.send_event) {
1840 if (xev.type == FocusIn &&
1841 xev.xfocus.mode == NotifyGrab) {
1847 if (xev.type == FocusOut &&
1848 xev.xfocus.mode == NotifyUngrab) {
1862 focusEventForProxy(xev, env, &trueFocusWindow,
1877 XtDispatchEvent(&xev);
1896 xev.xany.window);
1898 focusEventForFrame(xev, focusProxyWindow);
1904 xev.xany.window);
1906 focusEventForWindow(xev, env, &trueFocusWindow,
1915 printf("Unmap on window %d\n", xev.xany.window);
1918 clearFocusPathOnWindow(xev.xunmap.window);
2482 awt_xsettings_callback(int scr, XEvent *xev, void *cookie)
2484 Display *dpy = awt_display; /* xev->xany.display */
2487 if (xev->type != PropertyNotify) {
2489 scr, xev->type);
2493 ev = &xev->xproperty;