fix window disappearing when dropped on same non-primary monitor

This commit is contained in:
Tom Beckmann 2014-07-17 14:16:01 +02:00
parent ea95a7113e
commit 66b3b1b4df

View File

@ -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;
}