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:
parent
c606cf076d
commit
b88b743428
@ -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;
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user