diff options
Diffstat (limited to '')
-rw-r--r-- | extensions/vertical-workspaces/lib/overview.js (renamed from extensions/vertical-workspaces/overview.js) | 33 |
1 files changed, 12 insertions, 21 deletions
diff --git a/extensions/vertical-workspaces/overview.js b/extensions/vertical-workspaces/lib/overview.js index db267b6..2f23d05 100644 --- a/extensions/vertical-workspaces/overview.js +++ b/extensions/vertical-workspaces/lib/overview.js @@ -1,9 +1,6 @@ /** - * Vertical Workspaces + * V-Shell (Vertical Workspaces) * overview.js - * - * panel barrier should follow panel position - * or disable it to not collide with Custom Hot Corners barriers * * @author GdH <G-dH@github.com> * @copyright 2022 - 2023 @@ -13,21 +10,18 @@ 'use strict'; -const { Meta, Clutter } = imports.gi; - -const Main = imports.ui.main; const Overview = imports.ui.overview; const Me = imports.misc.extensionUtils.getCurrentExtension(); -const _Util = Me.imports.util; +const _Util = Me.imports.lib.util; let _overrides; let opt; function update(reset = false) { - if (_overrides) { + if (_overrides) _overrides.removeAll(); - } + if (reset) { _overrides = null; @@ -35,34 +29,31 @@ function update(reset = false) { return; } - opt = Me.imports.settings.opt; - + opt = Me.imports.lib.settings.opt; _overrides = new _Util.Overrides(); _overrides.addOverride('Overview', Overview.Overview.prototype, OverviewCommon); } - const OverviewCommon = { - _showDone: function() { + _showDone() { this._animationInProgress = false; this._coverPane.hide(); - + this.emit('shown'); // Handle any calls to hide* while we were showing if (!this._shown) this._animateNotVisible(); - + this._syncGrab(); // if user activates overview during startup animation, transition needs to be shifted to the state 2 here const controls = this._overview._controls; if (controls._searchController._searchActive && controls._stateAdjustment.value === 1) { - if (opt.SEARCH_VIEW_ANIMATION) { + if (opt.SEARCH_VIEW_ANIMATION) controls._onSearchChanged(); - } else { + else if (!opt.OVERVIEW_MODE2) controls._stateAdjustment.value = 2; - } } - } -} + }, +}; |