summaryrefslogtreecommitdiffstats
path: root/src/newt
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2013-12-19 12:54:56 +0100
committerSven Gothel <[email protected]>2013-12-19 12:54:56 +0100
commite217858a83f947ffdd7e4ce3395073584e57108a (patch)
tree615cb4237028ec4524b3ec37201f9d1eb5217ecb /src/newt
parent9b2bbaf82ed410096ac279542357daefc0d6dc7f (diff)
NEWT WindowImpl: Enhance insetsChanged(..) DEBUG output
Diffstat (limited to 'src/newt')
-rw-r--r--src/newt/classes/jogamp/newt/WindowImpl.java9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/newt/classes/jogamp/newt/WindowImpl.java b/src/newt/classes/jogamp/newt/WindowImpl.java
index e3174bd9f..aa2d264af 100644
--- a/src/newt/classes/jogamp/newt/WindowImpl.java
+++ b/src/newt/classes/jogamp/newt/WindowImpl.java
@@ -1270,6 +1270,7 @@ public abstract class WindowImpl implements Window, NEWTEventConsumer
", windowHandle "+toHexString(windowHandle)+" parentWindowHandle "+toHexString(parentWindowHandle)+
", visible "+wasVisible+", becomesVisible "+becomesVisible+
", forceDestroyCreate "+forceDestroyCreate+
+ ", DEBUG_TEST_REPARENT_INCOMPATIBLE "+DEBUG_TEST_REPARENT_INCOMPATIBLE+
", HINT_FORCE_RECREATION "+( 0 != ( REPARENT_HINT_FORCE_RECREATION & hints ) )+
", HINT_BECOMES_VISIBLE "+( 0 != ( REPARENT_HINT_BECOMES_VISIBLE & hints ) ) +
", old parentWindow: "+Display.hashCodeNullSafe(parentWindow)+
@@ -3596,17 +3597,17 @@ public abstract class WindowImpl implements Window, NEWTEventConsumer
*/
protected void insetsChanged(boolean defer, int left, int right, int top, int bottom) {
if ( left >= 0 && right >= 0 && top >= 0 && bottom >= 0 ) {
- if(isUndecorated()) {
+ if( isUndecorated() ) {
if(DEBUG_IMPLEMENTATION) {
- System.err.println("Window.insetsChanged: skip insets change for undecoration mode");
+ System.err.println("Window.insetsChanged (defer: "+defer+"): Skip insets change "+insets+" -> "+new Insets(left, right, top, bottom)+" (undecoration mode)");
}
} else if ( (left != insets.getLeftWidth() || right != insets.getRightWidth() ||
top != insets.getTopHeight() || bottom != insets.getBottomHeight() )
) {
- insets.set(left, right, top, bottom);
if(DEBUG_IMPLEMENTATION) {
- System.err.println("Window.insetsChanged: (defer: "+defer+") "+insets);
+ System.err.println("Window.insetsChanged (defer: "+defer+"): Changed "+insets+" -> "+new Insets(left, right, top, bottom));
}
+ insets.set(left, right, top, bottom);
}
}
}