overview: Do not zoom the desktop background
While scaling the desktop background with the window previews represents workspaces quite intuitively, the approach is not without problems. As window previews in the overview behave quite differently to "real" windows, the representation of workspaces as miniature versions of "real" workspaces is flawed. The scaling also makes the transitions to and from the overview much more visually expensive, without adding much benefit. Leaving the background in place provides more visual stability to the transitions and emphasizes the distinctive behavior of elements in the overview. https://bugzilla.gnome.org/show_bug.cgi?id=634948
This commit is contained in:
@ -117,6 +117,11 @@ GenericWorkspacesView.prototype = {
|
||||
}
|
||||
},
|
||||
|
||||
getActiveWorkspace: function() {
|
||||
let active = global.screen.get_active_workspace_index();
|
||||
return this._workspaces[active];
|
||||
},
|
||||
|
||||
_clearApplicationWindowSelection: function(reposition) {
|
||||
if (this._windowSelectionAppId == null)
|
||||
return;
|
||||
@ -826,7 +831,7 @@ SingleView.prototype = {
|
||||
if (index < 0 || index >= global.n_workspaces)
|
||||
return;
|
||||
|
||||
let dragActor = this._workspaces[index]._desktop.actor;
|
||||
let dragActor = this._workspaces[index].actor;
|
||||
|
||||
if (draggable) {
|
||||
this._workspaces[index].actor.reactive = true;
|
||||
@ -856,6 +861,9 @@ SingleView.prototype = {
|
||||
|
||||
// start dragging the active workspace
|
||||
_onButtonPress: function(actor, event) {
|
||||
if (actor != event.get_source())
|
||||
return;
|
||||
|
||||
if (this._dragIndex == -1)
|
||||
return;
|
||||
|
||||
|
Reference in New Issue
Block a user