mirror of
https://github.com/elementary/gala.git
synced 2024-11-30 19:27:01 +03:00
fix window disappearing when dropped on same non-primary monitor
This commit is contained in:
parent
ea95a7113e
commit
66b3b1b4df
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user