src/solaris/classes/sun/awt/X11/XFramePeer.java
Print this page
*** 73,83 ****
}
winAttr.functions = MWMConstants.MWM_FUNC_ALL;
winAttr.isResizable = true; // target.isResizable();
winAttr.title = target.getTitle();
winAttr.initialResizability = target.isResizable();
! if (log.isLoggable(PlatformLogger.FINE)) {
log.fine("Frame''s initial attributes: decor {0}, resizable {1}, undecorated {2}, initial state {3}",
Integer.valueOf(winAttr.decorations), Boolean.valueOf(winAttr.initialResizability),
Boolean.valueOf(!winAttr.nativeDecor), Integer.valueOf(winAttr.initialState));
}
}
--- 73,83 ----
}
winAttr.functions = MWMConstants.MWM_FUNC_ALL;
winAttr.isResizable = true; // target.isResizable();
winAttr.title = target.getTitle();
winAttr.initialResizability = target.isResizable();
! if (log.isLoggable(PlatformLogger.Level.FINE)) {
log.fine("Frame''s initial attributes: decor {0}, resizable {1}, undecorated {2}, initial state {3}",
Integer.valueOf(winAttr.decorations), Boolean.valueOf(winAttr.initialResizability),
Boolean.valueOf(!winAttr.nativeDecor), Integer.valueOf(winAttr.initialState));
}
}
*** 207,217 ****
}
);
}
public void setMaximizedBounds(Rectangle b) {
! if (insLog.isLoggable(PlatformLogger.FINE)) {
insLog.fine("Setting maximized bounds to " + b);
}
if (b == null) return;
maxBounds = new Rectangle(b);
XToolkit.awtLock();
--- 207,217 ----
}
);
}
public void setMaximizedBounds(Rectangle b) {
! if (insLog.isLoggable(PlatformLogger.Level.FINE)) {
insLog.fine("Setting maximized bounds to " + b);
}
if (b == null) return;
maxBounds = new Rectangle(b);
XToolkit.awtLock();
*** 226,236 ****
if (b.height != Integer.MAX_VALUE) {
hints.set_max_height(b.height);
} else {
hints.set_max_height((int)XlibWrapper.DisplayHeight(XToolkit.getDisplay(), XlibWrapper.DefaultScreen(XToolkit.getDisplay())));
}
! if (insLog.isLoggable(PlatformLogger.FINER)) {
insLog.finer("Setting hints, flags " + XlibWrapper.hintsToString(hints.get_flags()));
}
XlibWrapper.XSetWMNormalHints(XToolkit.getDisplay(), window, hints.pData);
} finally {
XToolkit.awtUnlock();
--- 226,236 ----
if (b.height != Integer.MAX_VALUE) {
hints.set_max_height(b.height);
} else {
hints.set_max_height((int)XlibWrapper.DisplayHeight(XToolkit.getDisplay(), XlibWrapper.DefaultScreen(XToolkit.getDisplay())));
}
! if (insLog.isLoggable(PlatformLogger.Level.FINER)) {
insLog.finer("Setting hints, flags " + XlibWrapper.hintsToString(hints.get_flags()));
}
XlibWrapper.XSetWMNormalHints(XToolkit.getDisplay(), window, hints.pData);
} finally {
XToolkit.awtUnlock();
*** 256,277 ****
void changeState(int newState) {
int changed = state ^ newState;
int changeIconic = changed & Frame.ICONIFIED;
boolean iconic = (newState & Frame.ICONIFIED) != 0;
! if (stateLog.isLoggable(PlatformLogger.FINER)) {
stateLog.finer("Changing state, old state {0}, new state {1}(iconic {2})",
Integer.valueOf(state), Integer.valueOf(newState), Boolean.valueOf(iconic));
}
if (changeIconic != 0 && iconic) {
! if (stateLog.isLoggable(PlatformLogger.FINER)) {
stateLog.finer("Iconifying shell " + getShell() + ", this " + this + ", screen " + getScreenNumber());
}
XToolkit.awtLock();
try {
int res = XlibWrapper.XIconifyWindow(XToolkit.getDisplay(), getShell(), getScreenNumber());
! if (stateLog.isLoggable(PlatformLogger.FINER)) {
stateLog.finer("XIconifyWindow returned " + res);
}
}
finally {
XToolkit.awtUnlock();
--- 256,277 ----
void changeState(int newState) {
int changed = state ^ newState;
int changeIconic = changed & Frame.ICONIFIED;
boolean iconic = (newState & Frame.ICONIFIED) != 0;
! if (stateLog.isLoggable(PlatformLogger.Level.FINER)) {
stateLog.finer("Changing state, old state {0}, new state {1}(iconic {2})",
Integer.valueOf(state), Integer.valueOf(newState), Boolean.valueOf(iconic));
}
if (changeIconic != 0 && iconic) {
! if (stateLog.isLoggable(PlatformLogger.Level.FINER)) {
stateLog.finer("Iconifying shell " + getShell() + ", this " + this + ", screen " + getScreenNumber());
}
XToolkit.awtLock();
try {
int res = XlibWrapper.XIconifyWindow(XToolkit.getDisplay(), getShell(), getScreenNumber());
! if (stateLog.isLoggable(PlatformLogger.Level.FINER)) {
stateLog.finer("XIconifyWindow returned " + res);
}
}
finally {
XToolkit.awtUnlock();
*** 279,289 ****
}
if ((changed & ~Frame.ICONIFIED) != 0) {
setExtendedState(newState);
}
if (changeIconic != 0 && !iconic) {
! if (stateLog.isLoggable(PlatformLogger.FINER)) {
stateLog.finer("DeIconifying " + this);
}
xSetVisible(true);
}
}
--- 279,289 ----
}
if ((changed & ~Frame.ICONIFIED) != 0) {
setExtendedState(newState);
}
if (changeIconic != 0 && !iconic) {
! if (stateLog.isLoggable(PlatformLogger.Level.FINER)) {
stateLog.finer("DeIconifying " + this);
}
xSetVisible(true);
}
}
*** 294,304 ****
public void handlePropertyNotify(XEvent xev) {
super.handlePropertyNotify(xev);
XPropertyEvent ev = xev.get_xproperty();
! if (log.isLoggable(PlatformLogger.FINER)) {
log.finer("Property change {0}", ev);
}
/*
* Let's see if this is a window state protocol message, and
* if it is - decode a new state in terms of java constants.
--- 294,304 ----
public void handlePropertyNotify(XEvent xev) {
super.handlePropertyNotify(xev);
XPropertyEvent ev = xev.get_xproperty();
! if (log.isLoggable(PlatformLogger.Level.FINER)) {
log.finer("Property change {0}", ev);
}
/*
* Let's see if this is a window state protocol message, and
* if it is - decode a new state in terms of java constants.
*** 309,319 ****
}
final int newState = XWM.getWM().getState(this);
int changed = state ^ newState;
if (changed == 0) {
! if (stateLog.isLoggable(PlatformLogger.FINER)) {
stateLog.finer("State is the same: " + state);
}
return;
}
--- 309,319 ----
}
final int newState = XWM.getWM().getState(this);
int changed = state ^ newState;
if (changed == 0) {
! if (stateLog.isLoggable(PlatformLogger.Level.FINER)) {
stateLog.finer("State is the same: " + state);
}
return;
}
*** 363,373 ****
XToolkit.awtLock();
try {
XWMHints hints = getWMHints();
hints.set_flags((int)XUtilConstants.StateHint | hints.get_flags());
hints.set_initial_state(wm_state);
! if (stateLog.isLoggable(PlatformLogger.FINE)) {
stateLog.fine("Setting initial WM state on " + this + " to " + wm_state);
}
XlibWrapper.XSetWMHints(XToolkit.getDisplay(), getWindow(), hints.pData);
}
finally {
--- 363,373 ----
XToolkit.awtLock();
try {
XWMHints hints = getWMHints();
hints.set_flags((int)XUtilConstants.StateHint | hints.get_flags());
hints.set_initial_state(wm_state);
! if (stateLog.isLoggable(PlatformLogger.Level.FINE)) {
stateLog.fine("Setting initial WM state on " + this + " to " + wm_state);
}
XlibWrapper.XSetWMHints(XToolkit.getDisplay(), getWindow(), hints.pData);
}
finally {