1082 System.err.println(">>>> " + id + ": " + pattr.get_x() 1083 + ", " + pattr.get_y() + ", " + pattr.get_width() 1084 + ", " + pattr.get_height()); 1085 } finally { 1086 pattr.dispose(); 1087 } 1088 } 1089 1090 final void dumpAll() { 1091 dumpTarget(); 1092 dumpMe(); 1093 dumpParent(); 1094 dumpShell(); 1095 dumpContent(); 1096 } 1097 1098 boolean isMaximized() { 1099 return false; 1100 } 1101 1102 boolean isOverrideRedirect() { 1103 // return false; 1104 return ((XToolkit)Toolkit.getDefaultToolkit()).isOverrideRedirect((Window)target); 1105 } 1106 1107 public boolean requestWindowFocus(long time, boolean timeProvided) { 1108 focusLog.fine("Request for decorated window focus"); 1109 // If this is Frame or Dialog we can't assure focus request success - but we still can try 1110 // If this is Window and its owner Frame is active we can be sure request succedded. 1111 Window focusedWindow = XKeyboardFocusManagerPeer.getCurrentNativeFocusedWindow(); 1112 Window activeWindow = XWindowPeer.getDecoratedOwner(focusedWindow); 1113 1114 focusLog.log(Level.FINER, "Current window is: active={0}, focused={1}", 1115 new Object[]{ Boolean.valueOf(target == activeWindow), 1116 Boolean.valueOf(target == focusedWindow)}); 1117 1118 XWindowPeer toFocus = this; 1119 while (toFocus.nextTransientFor != null) { 1120 toFocus = toFocus.nextTransientFor; 1121 } 1122 if (toFocus == null || !toFocus.focusAllowedFor()) { 1123 // This might change when WM will have property to determine focus policy. 1124 // Right now, because policy is unknown we can't be sure we succedded | 1082 System.err.println(">>>> " + id + ": " + pattr.get_x() 1083 + ", " + pattr.get_y() + ", " + pattr.get_width() 1084 + ", " + pattr.get_height()); 1085 } finally { 1086 pattr.dispose(); 1087 } 1088 } 1089 1090 final void dumpAll() { 1091 dumpTarget(); 1092 dumpMe(); 1093 dumpParent(); 1094 dumpShell(); 1095 dumpContent(); 1096 } 1097 1098 boolean isMaximized() { 1099 return false; 1100 } 1101 1102 @Override 1103 boolean isOverrideRedirect() { 1104 return Window.Type.POPUP.equals(getWindowType()); 1105 } 1106 1107 public boolean requestWindowFocus(long time, boolean timeProvided) { 1108 focusLog.fine("Request for decorated window focus"); 1109 // If this is Frame or Dialog we can't assure focus request success - but we still can try 1110 // If this is Window and its owner Frame is active we can be sure request succedded. 1111 Window focusedWindow = XKeyboardFocusManagerPeer.getCurrentNativeFocusedWindow(); 1112 Window activeWindow = XWindowPeer.getDecoratedOwner(focusedWindow); 1113 1114 focusLog.log(Level.FINER, "Current window is: active={0}, focused={1}", 1115 new Object[]{ Boolean.valueOf(target == activeWindow), 1116 Boolean.valueOf(target == focusedWindow)}); 1117 1118 XWindowPeer toFocus = this; 1119 while (toFocus.nextTransientFor != null) { 1120 toFocus = toFocus.nextTransientFor; 1121 } 1122 if (toFocus == null || !toFocus.focusAllowedFor()) { 1123 // This might change when WM will have property to determine focus policy. 1124 // Right now, because policy is unknown we can't be sure we succedded |