[gnome-shell] overview: Avoid repositioning windows while returning to desktop
- From: Carlos Soriano <csoriano src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] overview: Avoid repositioning windows while returning to desktop
- Date: Mon, 7 Jul 2014 15:45:27 +0000 (UTC)
commit 4bb2a364d3718f4d55481a11b18b410907fbd4a2
Author: Carlos Soriano <carlos soriano89 gmail com>
Date: Mon Jul 7 17:26:37 2014 +0200
overview: Avoid repositioning windows while returning to desktop
When returning to the desktop from overview we always show the
workspaceDisplay, given that is which have the windows clones to allow
animations.
The problem becomes when previous that we were at some other
page, like Search or AppDisplay. The problem is that when showing the
workspaceDisplay the windows are repositioned. That's wanted except
when returning from overview, since that causes unwanted animations
of the windows.
To avoid that just not reposition the windows if leaving the overview.
js/ui/workspace.js | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/js/ui/workspace.js b/js/ui/workspace.js
index adad46f..ec012c0 100644
--- a/js/ui/workspace.js
+++ b/js/ui/workspace.js
@@ -1258,6 +1258,12 @@ const Workspace = new Lang.Class({
return;
}
+ // We will reposition windows when enter again overview anyway.
+ // In this way we avoid unwanted animations of windows repositioning while
+ // animating overview
+ if (this.leavingOverview)
+ return;
+
let initialPositioning = flags & WindowPositionFlags.INITIAL;
let animate = flags & WindowPositionFlags.ANIMATE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]