Revision 39395

View differences:

branches/v2_0_0_prep/libraries/libCorePlugin/src/org/gvsig/coreplugin/mdiManager/NewSkin.java
1127 1127
        	win = (IWindow) winIterator.next();
1128 1128
        	frame = fws.getFrame(win);
1129 1129
    		zPosition = panel.getPosition(frame);
1130
    		
1131
    		if (zPosition == -1) {
1132
    		    /*
1133
    		     * This is a minimized window.
1134
    		     * It will keep the -1 (first position) if it does not have the focus.
1135
    		     * (I think this never happens. Even if visually the minimized window
1136
    		     * appears selected, it does not have the focus), so minimized
1137
    		     * windows will lose the first position.
1138
    		     */
1139
    		    if (!frame.isFocusOwner()) {
1140
    		        zPosition = 1000;
1141
    		    }
1142
    		}
1130 1143
    		int layer = panel.getLayer(frame);
1131 1144

  
1132 1145
    		if (! (frame instanceof JDialog)) { //JDialogs are not in inside the LayeredPane

Also available in: Unified diff