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

Print this page

        

*** 41,51 **** public boolean supportsState(int state) { return doStateProtocol() ; // TODO - check for Frame constants } public void setState(XWindowPeer window, int state) { ! if (log.isLoggable(PlatformLogger.FINE)) log.fine("Setting state of " + window + " to " + state); if (window.isShowing()) { requestState(window, state); } else { setInitialState(window, state); } --- 41,53 ---- public boolean supportsState(int state) { return doStateProtocol() ; // TODO - check for Frame constants } public void setState(XWindowPeer window, int state) { ! if (log.isLoggable(PlatformLogger.FINE)) { ! log.fine("Setting state of " + window + " to " + state); ! } if (window.isShowing()) { requestState(window, state); } else { setInitialState(window, state); }
*** 95,105 **** req.set_data(2, XA_NET_WM_STATE_MAXIMIZED_VERT.getAtom()); break; default: return; } ! if (log.isLoggable(PlatformLogger.FINE)) log.fine("Requesting state on " + window + " for " + state); req.set_type((int)XConstants.ClientMessage); req.set_window(window.getWindow()); req.set_message_type(XA_NET_WM_STATE.getAtom()); req.set_format(32); req.set_data(0, _NET_WM_STATE_TOGGLE); --- 97,109 ---- req.set_data(2, XA_NET_WM_STATE_MAXIMIZED_VERT.getAtom()); break; default: return; } ! if (log.isLoggable(PlatformLogger.FINE)) { ! log.fine("Requesting state on " + window + " for " + state); ! } req.set_type((int)XConstants.ClientMessage); req.set_window(window.getWindow()); req.set_message_type(XA_NET_WM_STATE.getAtom()); req.set_format(32); req.set_data(0, _NET_WM_STATE_TOGGLE);
*** 272,292 **** // TODO: How about detecting WM-restart or exit? return; } NetWindow = checkAnchor(XA_NET_SUPPORTING_WM_CHECK, XAtom.XA_WINDOW); supportChecked = true; ! if (log.isLoggable(PlatformLogger.FINE)) log.fine("### " + this + " is active: " + (NetWindow != 0)); } boolean active() { detect(); return NetWindow != 0; } boolean doStateProtocol() { boolean res = active() && checkProtocol(XA_NET_SUPPORTED, XA_NET_WM_STATE); stateLog.finer("doStateProtocol() returns " + res); return res; } boolean doLayerProtocol() { boolean res = active() && checkProtocol(XA_NET_SUPPORTED, XA_NET_WM_STATE_ABOVE); --- 276,300 ---- // TODO: How about detecting WM-restart or exit? return; } NetWindow = checkAnchor(XA_NET_SUPPORTING_WM_CHECK, XAtom.XA_WINDOW); supportChecked = true; ! if (log.isLoggable(PlatformLogger.FINE)) { ! log.fine("### " + this + " is active: " + (NetWindow != 0)); ! } } boolean active() { detect(); return NetWindow != 0; } boolean doStateProtocol() { boolean res = active() && checkProtocol(XA_NET_SUPPORTED, XA_NET_WM_STATE); + if (stateLog.isLoggable(PlatformLogger.FINER)) { stateLog.finer("doStateProtocol() returns " + res); + } return res; } boolean doLayerProtocol() { boolean res = active() && checkProtocol(XA_NET_SUPPORTED, XA_NET_WM_STATE_ABOVE);
*** 309,319 **** } String net_wm_name_string = getWMName(); if (net_wm_name_string == null) { return false; } ! if (log.isLoggable(PlatformLogger.FINE)) log.fine("### WM_NAME = " + net_wm_name_string); return net_wm_name_string.startsWith(name); } String net_wm_name_cache; public String getWMName() { --- 317,329 ---- } String net_wm_name_string = getWMName(); if (net_wm_name_string == null) { return false; } ! if (log.isLoggable(PlatformLogger.FINE)) { ! log.fine("### WM_NAME = " + net_wm_name_string); ! } return net_wm_name_string.startsWith(name); } String net_wm_name_cache; public String getWMName() {