add TODOs

This commit is contained in:
Peter Fajdiga
2024-08-18 17:01:36 +02:00
parent ef9cb01755
commit f682c160db
2 changed files with 3 additions and 0 deletions

View File

@@ -23,6 +23,7 @@ namespace ClientState {
}
}
// TODO: move to `Tiled.restoreClientAfterTiling`
private static limitHeight(client: ClientWrapper) {
const placementArea = Workspace.clientArea(
ClientAreaOption.PlacementArea,

View File

@@ -114,6 +114,8 @@ namespace ClientState {
const dx = Math.round(newCenterX - oldCenterX);
const dy = Math.round(newCenterY - oldCenterY);
if (dx !== 0 || dy !== 0) {
// TODO: instead of passing dx and dy, remember relative (to the parent) x and y for each
// transient window and use them for `moveTransients` and `ensureTransientsVisible`
client.moveTransients(dx, dy);
}