fix windows zorder on restore

This commit is contained in:
HF 2021-05-18 22:09:30 +02:00
parent e5ca21a285
commit af820bbfa0

View File

@ -480,8 +480,10 @@ export default function windows(
height,
);
const cloneable = prevWinSize.cloneable || true;
return {
const newZMax = state.zMax + 1;
return sortWindows({
...state,
zMax: newZMax,
modal: {
...state.modal,
open: false,
@ -498,6 +500,7 @@ export default function windows(
height,
xPos,
yPos,
z: newZMax,
cloneable,
},
],
@ -507,7 +510,7 @@ export default function windows(
...state.args[0],
},
},
};
});
}
case 'MOVE_WINDOW': {