aboutsummaryrefslogtreecommitdiffstats
path: root/desktop/companion
diff options
context:
space:
mode:
Diffstat (limited to 'desktop/companion')
-rw-r--r--desktop/companion/Companion.qml4
1 files changed, 3 insertions, 1 deletions
diff --git a/desktop/companion/Companion.qml b/desktop/companion/Companion.qml
index 21b1a38..8c049f2 100644
--- a/desktop/companion/Companion.qml
+++ b/desktop/companion/Companion.qml
@@ -76,8 +76,10 @@ PanelWindow {
// No focused monitor (outputs gone over a suspend) is not a destination.
// Already out of view, there is no exit to wait for: settled would never
// fire, hopping would stick and hide her for good, so move at once.
+ // Mid-hop, settled takes the latest goal; moving now would jump the
+ // window before the exit has played (hopping counts as away).
function move() {
- if (root.goal === "" || (root.goal === root.here && root.seated === root.sitting)) return;
+ if (root.hopping || root.goal === "" || (root.goal === root.here && root.seated === root.sitting)) return;
if (root.here === "" || root.away) {
root.here = root.goal;
root.sitting = root.seated;