Lines Matching refs:XEvent
233 XEvent xevent;
234 memset(&xevent, 0, sizeof(XEvent));
235 XGraphicsExposeEvent& exposeEvent = xevent.xgraphicsexpose;
244 dispatchNPEvent(xevent);
279 NPEvent xEvent;
281 initXEvent(&xEvent);
284 xEvent.type = (event->type() == eventNames().keydownEvent) ? 2 : 3; // KeyPress/Release get unset somewhere
285 xEvent.xkey.root = getRootWindow(m_parentFrame.get());
286 xEvent.xkey.subwindow = 0; // we have no child window
287 xEvent.xkey.time = event->timeStamp();
288 xEvent.xkey.state = gdkEvent->state; // GdkModifierType mirrors xlib state masks
289 xEvent.xkey.keycode = gdkEvent->hardware_keycode;
290 xEvent.xkey.same_screen = true;
293 // corresponding to the plug-in rectangle, some of the members of the XEvent structures are not
296 xEvent.xkey.x = 0;
297 xEvent.xkey.y = 0;
298 xEvent.xkey.x_root = 0;
299 xEvent.xkey.y_root = 0;
302 if (!dispatchNPEvent(xEvent))
321 void PluginView::initXEvent(XEvent* xEvent)
323 memset(xEvent, 0, sizeof(XEvent));
325 xEvent->xany.serial = 0; // we are unaware of the last request processed by X Server
326 xEvent->xany.send_event = false;
328 xEvent->xany.display = GDK_DISPLAY_XDISPLAY(gtk_widget_get_display(widget));
334 xEvent->xany.window = None;
337 static void setXButtonEventSpecificFields(XEvent* xEvent, MouseEvent* event, const IntPoint& postZoomPos, Frame* parentFrame)
339 XButtonEvent& xbutton = xEvent->xbutton;
364 static void setXMotionEventSpecificFields(XEvent* xEvent, MouseEvent* event, const IntPoint& postZoomPos, Frame* parentFrame)
366 XMotionEvent& xmotion = xEvent->xmotion;
380 static void setXCrossingEventSpecificFields(XEvent* xEvent, MouseEvent* event, const IntPoint& postZoomPos, Frame* parentFrame)
382 XCrossingEvent& xcrossing = xEvent->xcrossing;
412 NPEvent xEvent;
414 initXEvent(&xEvent);
419 setXButtonEventSpecificFields(&xEvent, event, postZoomPos, m_parentFrame.get());
421 setXMotionEventSpecificFields(&xEvent, event, postZoomPos, m_parentFrame.get());
423 setXCrossingEventSpecificFields(&xEvent, event, postZoomPos, m_parentFrame.get());
434 if (!dispatchNPEvent(xEvent))
441 XEvent npEvent;
454 XEvent npEvent;