Delay rearrangement when cursor hovers a window

In overview when closing a window and afterwards dragging a window it can
happen that you pick a wrong window or no window if windows' positions is
updated while initiating the drag.
Fix that by delaying window rearrangement when cursor is over a window.

https://bugzilla.gnome.org/show_bug.cgi?id=645325
This commit is contained in:
Vit Stanislav 2012-01-08 10:58:00 +01:00 committed by Adel Gadllah
parent c606cf076d
commit b88b743428

View File

@ -1155,6 +1155,12 @@ const Workspace = new Lang.Class({
return true;
}
let actorUnderPointer = global.stage.get_actor_at_pos(Clutter.PickMode.REACTIVE, x, y);
for (let i = 0; i < this._windows.length; i++) {
if (this._windows[i].actor == actorUnderPointer)
return true;
}
this.positionWindows(WindowPositionFlags.ANIMATE);
return false;
},