Commit 764fbbe0 authored by Florian Müllner's avatar Florian Müllner Committed by Florian Müllner
Browse files

overview: Restore previous workspace switcher policy

We used to keep the workspace switcher slid out when the user made use
of workspaces. This was changed in commit 2d849759 to give more space
to window previews, but it turned out to make the switcher quite a lot
more difficult to interact with (rather than only being a question of
discoverability). So go back to the previous behavior.

parent 328c63bf
......@@ -253,13 +253,23 @@ var ThumbnailsSlider = new Lang.Class({;
Main.layoutManager.connect('monitors-changed', this._updateSlide.bind(this));
this._updateSlide.bind(this));'notify::hover', this._updateSlide.bind(this));'visible',, 'visible', GObject.BindingFlags.SYNC_CREATE);
_getAlwaysZoomOut() {
// Always show the pager on hover or during a drag
let alwaysZoomOut = || this._inDrag;
// Always show the pager on hover, during a drag, or if workspaces are
// actually used, e.g. there are windows on any non-active workspace
let workspaceManager = global.workspace_manager;
let alwaysZoomOut = ||
this._inDrag ||
!Meta.prefs_get_dynamic_workspaces() ||
workspaceManager.n_workspaces > 2 ||
workspaceManager.get_active_workspace_index() != 0;
if (!alwaysZoomOut) {
let monitors = Main.layoutManager.monitors;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment