overview: drag and drop to move windows

This commit is contained in:
end-4
2025-04-26 21:24:08 +02:00
parent 6f6b3876fb
commit af4ecc55ce
6 changed files with 150 additions and 66 deletions
+3 -2
View File
@@ -43,11 +43,12 @@ Singleton {
stdout: SplitParser {
onRead: (data) => {
root.windowList = JSON.parse(data)
root.windowByAddress = {}
let tempWinByAddress = {}
for (var i = 0; i < root.windowList.length; ++i) {
var win = root.windowList[i]
root.windowByAddress[win.address] = win
tempWinByAddress[win.address] = win
}
root.windowByAddress = tempWinByAddress
root.addresses = root.windowList.map((win) => win.address)
}
}