2362N/A * or visit www.oracle.com if you need additional information or have any
0N/A#include "awt_Component.h"
0N/A#include "awt_GraphicsEnv.h"
6295N/A#include <sizecalc.h>
0N/A#include "robot_common.h"
0N/A#include "multiVis.h"
0N/A isXTestAvailable = XQueryExtension(awt_display, XTestExtensionName, &major_opcode, &first_event, &first_error);
0N/A DTRACE_PRINTLN3("RobotPeer: XQueryExtension(XTEST) returns major_opcode = %d, first_event = %d, first_error = %d",
0N/A if (isXTestAvailable) {
0N/A DTRACE_PRINTLN4("RobotPeer: XTestQueryExtension returns event_basep = %d, error_basep = %d, majorp = %d, minorp = %d",
0N/A return isXTestAvailable;
0N/A * The following two functions live in multiVis.c-- they are pretty
2859N/AJava_sun_awt_X11_XRobotPeer_setup (JNIEnv * env, jclass cls, jint numberOfButtons, jintArray buttonDownMasks)
1444N/A for (i = 0; i < num_buttons; i++) {
0N/A if (!xtestAvailable) {
0N/A JNU_ThrowByName(env, "java/awt/AWTException", "java.awt.Robot requires your X server support the XTEST extension version 2.2");
870N/A AWT_UNLOCK();
0N/A DTRACE_PRINTLN6("RobotPeer: getRGBPixelsImpl(%lx, %d, %d, %d, %d, %x)", xgc, x, y, width, height, pixelArray);
0N/A AWT_UNLOCK();
0N/A adata = (AwtGraphicsConfigDataPtr) JNU_GetLongFieldAsPtr(env, xgc, x11GraphicsConfigIDs.aData);
0N/A AWT_UNLOCK();
0N/A AWT_UNLOCK();
0N/A AWT_UNLOCK();
0N/A AWT_UNLOCK();
0N/A adata = (AwtGraphicsConfigDataPtr) JNU_GetLongFieldAsPtr(env, xgc, x11GraphicsConfigIDs.aData);
0N/A XWarpPointer(awt_display, None, XRootWindow(awt_display, adata->awt_visInfo.screen), 0, 0, 0, 0, root_x, root_y);
0N/A AWT_UNLOCK();
870N/A AWT_UNLOCK();
0N/A AWT_UNLOCK();