/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/* Gnome WM spec */
return doStateProtocol(); // TODO - check for Frame constants
}
/*
* Request state transition from a Gnome WM (_WIN protocol) by sending
* _WIN_STATE ClientMessage to root window.
*/
long win_state = 0;
}
}
if (log.isLoggable(PlatformLogger.FINE)) log.fine("Sending WIN_STATE to root to change the state to " + win_state);
try {
false,
}
finally {
}
} else {
/*
* Specify initial state for a Gnome WM (_WIN protocol) by setting
* WIN_STATE property on the window to the desired state before
* mapping it.
*/
/* Be careful to not wipe out state bits we don't understand */
long old_win_state = win_state;
/*
* In their stupid quest of reinventing every wheel, Gnome WM spec
* have its own "minimized" hint (instead of using initial state
* and WM_STATE hints). This is bogus, but, apparently, some WMs
* pay attention.
*/
} else {
}
} else {
}
} else {
}
if (log.isLoggable(PlatformLogger.FINE)) log.fine("Setting WIN_STATE on " + window + " to change the state to " + win_state);
}
}
}
}
}
return java_state;
}
}
return;
}
}
}
if (log.isLoggable(PlatformLogger.FINE)) log.fine("Setting layer " + layer + " by root message : " + req);
try {
false,
}
finally {
}
} else {
}
}
/* _WIN_STATE bits */
/* _WIN_LAYER values */
boolean supportChecked = false;
void detect() {
if (supportChecked) {
return;
}
supportChecked = true;
if (log.isLoggable(PlatformLogger.FINE)) log.fine("### " + this + " is active: " + (WinWindow != 0));
}
boolean active() {
detect();
return WinWindow != 0;
}
boolean doStateProtocol() {
return res;
}
boolean doLayerProtocol() {
return res;
}
}