Lines Matching refs:XEvent
258 XEvent xevent;
259 memset(&xevent, 0, sizeof(XEvent));
260 XGraphicsExposeEvent& exposeEvent = xevent.xgraphicsexpose;
269 dispatchNPEvent(xevent);
319 XEvent xevent;
320 memset(&xevent, 0, sizeof(XEvent));
321 XGraphicsExposeEvent& exposeEvent = xevent.xgraphicsexpose;
330 dispatchNPEvent(xevent);
400 void setSharedXEventFields(XEvent* xEvent, QWidget* ownerWidget)
402 xEvent->xany.serial = 0; // we are unaware of the last request processed by X Server
403 xEvent->xany.send_event = false;
404 xEvent->xany.display = QX11Info::display();
405 // NOTE: event->xany.window doesn't always respond to the .window property of other XEvent's
408 xEvent->xany.window = ownerWidget ? ownerWidget->window()->handle() : 0;
411 void PluginView::initXEvent(XEvent* xEvent)
413 memset(xEvent, 0, sizeof(XEvent));
417 setSharedXEventFields(xEvent, ownerWidget);
420 void setXKeyEventSpecificFields(XEvent* xEvent, KeyboardEvent* event)
424 xEvent->type = (event->type() == eventNames().keydownEvent) ? 2 : 3; // ints as Qt unsets KeyPress and KeyRelease
425 xEvent->xkey.root = QX11Info::appRootWindow();
426 xEvent->xkey.subwindow = 0; // we have no child window
427 xEvent->xkey.time = event->timeStamp();
428 xEvent->xkey.state = keyEvent->nativeModifiers();
429 xEvent->xkey.keycode = keyEvent->nativeScanCode();
432 // case fetch the XEvent's keycode from the event's text. The only
435 if (QWebPagePrivate::drtRun && !xEvent->xkey.keycode) {
439 xEvent->xkey.keycode = XKeysymToKeycode(QX11Info::display(), XStringToKeysym(keyText.toUtf8().constData()));
442 xEvent->xkey.same_screen = true;
445 // corresponding to the plug-in rectangle, some of the members of the XEvent structures are not
448 xEvent->xkey.x = 0;
449 xEvent->xkey.y = 0;
450 xEvent->xkey.x_root = 0;
451 xEvent->xkey.y_root = 0;
462 XEvent npEvent;
484 static void setXButtonEventSpecificFields(XEvent* xEvent, MouseEvent* event, const IntPoint& postZoomPos)
486 XButtonEvent& xbutton = xEvent->xbutton;
511 static void setXMotionEventSpecificFields(XEvent* xEvent, MouseEvent* event, const IntPoint& postZoomPos)
513 XMotionEvent& xmotion = xEvent->xmotion;
527 static void setXCrossingEventSpecificFields(XEvent* xEvent, MouseEvent* event, const IntPoint& postZoomPos)
529 XCrossingEvent& xcrossing = xEvent->xcrossing;
561 XEvent npEvent;
581 XEvent npEvent;
594 XEvent npEvent;