1696N/A private static final PlatformLogger xembedLog = PlatformLogger.getLogger("sun.awt.X11.xembed.XEmbedServerTester");
0N/A Rectangle serverBounds[]; // first rectangle is for the server frame, second is for dummy frame, others are for its children
0N/A private static final int SERVER_BOUNDS = 0, OTHER_FRAME = 1, SERVER_FOCUS = 2, SERVER_MODAL = 3, MODAL_CLOSE = 4;
0N/A windowActive = false;
0N/A xembedActive = false;
0N/A throw new IllegalArgumentException("There must be at least five areas: server-activation, server-deactivation, server-focus, " +
0N/A requestFocus();
0N/A requestFocus();
0N/A requestFocus();
0N/A checkFocused();
0N/A requestFocus();
0N/A focusServer();
0N/A requestFocus();
0N/A requestFocus();
0N/A XlibWrapper.XReparentWindow(XToolkit.getDisplay(), window.getWindow(), XToolkit.getDefaultRootWindow(), 0, 0);
0N/A checkMapped();
0N/A checkMapped();
0N/A focusServer();
0N/A focusServer();
0N/A focusServer();
0N/A requestFocus();
0N/A focusServer();
0N/A focusServer();
0N/A focusServer();
0N/A requestFocus();
0N/A requestFocus();
0N/A synchronized(EVENT_LOCK) {
0N/A synchronized(EVENT_LOCK) {
0N/A xembedLog.finer("The event " + XEmbedHelper.msgidToString(event) + " has already been received");
0N/A xembedLog.finer("Waiting for " + XEmbedHelper.msgidToString(event) + " starting from " + position);
0N/A throw new RuntimeException("Didn't receive event " + XEmbedHelper.msgidToString(event) + " but recevied " + XEmbedHelper.msgidToString(eventReceived));
0N/A synchronized(EVENT_LOCK) {
0N/A throw new RuntimeException("Wrong focused server component, should be 0, but it is " + focusedServerComponent);
0N/A throw new RuntimeException("Wrong focused server component, should be 2, but it is " + focusedServerComponent);
0N/A throw new RuntimeException("Kinds don't match, required: " + kind + ", current: " + focusedKind);
0N/A if (!windowActive) {
1696N/A if (xembedLog.isLoggable(PlatformLogger.FINE)) xembedLog.fine("Embedded message: " + XEmbedHelper.msgidToString((int)msg.get_data(1)));
0N/A xembedActive = true;
0N/A windowActive = true;
0N/A windowActive = false;
0N/A synchronized(EVENT_LOCK) {
0N/A synchronized(EVENT_LOCK) {
0N/A xembedLog.finer("Tester is waiting for " + XEmbedHelper.msgidToString(eventWaited) + ", but we received " + ev + "(" + XEmbedHelper.msgidToString(eventID) + ")");