From 66b3b1b4df296cc35a0cbd2dfa398aa3f74ba6aa Mon Sep 17 00:00:00 2001 From: Tom Beckmann Date: Thu, 17 Jul 2014 14:16:01 +0200 Subject: [PATCH] fix window disappearing when dropped on same non-primary monitor --- src/Widgets/WindowClone.vala | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/Widgets/WindowClone.vala b/src/Widgets/WindowClone.vala index 41be919c..1f95559c 100644 --- a/src/Widgets/WindowClone.vala +++ b/src/Widgets/WindowClone.vala @@ -619,8 +619,13 @@ namespace Gala return; } else if (destination is MonitorClone) { - window.move_to_monitor (((MonitorClone) destination).monitor); - unmanaged (); + var monitor = ((MonitorClone) destination).monitor; + if (window.get_monitor () != monitor) { + window.move_to_monitor (monitor); + unmanaged (); + } else + drag_canceled (); + return; }