waffles: taskview: draggable windows

This commit is contained in:
end-4
2025-12-14 10:20:54 +01:00
parent 3358ebe639
commit e206c4334c
2 changed files with 14 additions and 1 deletions
@@ -123,6 +123,18 @@ Rectangle {
TaskViewWindow {
id: windowItem
z: 9999
drag {
target: this
onActiveChanged: {
if (drag.active) {
parent = root;
} else {
parent = clientGridArea;
x = 0;
y = 0;
}
}
}
Layout.alignment: Qt.AlignTop
maxHeight: root.maxWindowHeight
maxWidth: root.maxWindowWidth