src/solaris/classes/sun/awt/X11/XEmbedHelper.java

Print this page

        

*** 80,94 **** static XAtom XEmbed; XEmbedHelper() { if (XEmbed == null) { XEmbed = XAtom.get("_XEMBED"); ! if (xembedLog.isLoggable(PlatformLogger.FINER)) xembedLog.finer("Created atom " + XEmbed.toString()); } if (XEmbedInfo == null) { XEmbedInfo = XAtom.get("_XEMBED_INFO"); ! if (xembedLog.isLoggable(PlatformLogger.FINER)) xembedLog.finer("Created atom " + XEmbedInfo.toString()); } } void sendMessage(long window, int message) { sendMessage(window, message, 0, 0, 0); --- 80,98 ---- static XAtom XEmbed; XEmbedHelper() { if (XEmbed == null) { XEmbed = XAtom.get("_XEMBED"); ! if (xembedLog.isLoggable(PlatformLogger.FINER)) { ! xembedLog.finer("Created atom " + XEmbed.toString()); ! } } if (XEmbedInfo == null) { XEmbedInfo = XAtom.get("_XEMBED_INFO"); ! if (xembedLog.isLoggable(PlatformLogger.FINER)) { ! xembedLog.finer("Created atom " + XEmbedInfo.toString()); ! } } } void sendMessage(long window, int message) { sendMessage(window, message, 0, 0, 0);
*** 104,114 **** msg.set_data(2, detail); msg.set_data(3, data1); msg.set_data(4, data2); XToolkit.awtLock(); try { ! if (xembedLog.isLoggable(PlatformLogger.FINE)) xembedLog.fine("Sending " + XEmbedMessageToString(msg)); XlibWrapper.XSendEvent(XToolkit.getDisplay(), window, false, XConstants.NoEventMask, msg.pData); } finally { XToolkit.awtUnlock(); } --- 108,120 ---- msg.set_data(2, detail); msg.set_data(3, data1); msg.set_data(4, data2); XToolkit.awtLock(); try { ! if (xembedLog.isLoggable(PlatformLogger.FINE)) { ! xembedLog.fine("Sending " + XEmbedMessageToString(msg)); ! } XlibWrapper.XSendEvent(XToolkit.getDisplay(), window, false, XConstants.NoEventMask, msg.pData); } finally { XToolkit.awtUnlock(); }