From e206c4334c5623ff6ed66c874e69c41c434edc36 Mon Sep 17 00:00:00 2001 From: end-4 <97237370+end-4@users.noreply.github.com> Date: Sun, 14 Dec 2025 10:20:54 +0100 Subject: [PATCH] waffles: taskview: draggable windows --- .../ii/modules/waffle/taskView/TaskViewContent.qml | 12 ++++++++++++ .../ii/scripts/thumbnails/thumbgen-venv.sh | 3 ++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/dots/.config/quickshell/ii/modules/waffle/taskView/TaskViewContent.qml b/dots/.config/quickshell/ii/modules/waffle/taskView/TaskViewContent.qml index 842395cd9..cbb61b2fe 100644 --- a/dots/.config/quickshell/ii/modules/waffle/taskView/TaskViewContent.qml +++ b/dots/.config/quickshell/ii/modules/waffle/taskView/TaskViewContent.qml @@ -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 diff --git a/dots/.config/quickshell/ii/scripts/thumbnails/thumbgen-venv.sh b/dots/.config/quickshell/ii/scripts/thumbnails/thumbgen-venv.sh index a27b5ca1d..5b24f16f9 100755 --- a/dots/.config/quickshell/ii/scripts/thumbnails/thumbgen-venv.sh +++ b/dots/.config/quickshell/ii/scripts/thumbnails/thumbgen-venv.sh @@ -3,4 +3,5 @@ SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" source $(eval echo $ILLOGICAL_IMPULSE_VIRTUAL_ENV)/bin/activate GIO_USE_VFS=local "$SCRIPT_DIR/thumbgen.py" "$@" -deactivate \ No newline at end of file +deactivate +