Skip to content
This repository has been archived by the owner on Dec 3, 2021. It is now read-only.

Commit

Permalink
Fix error getting workspacesDisplay
Browse files Browse the repository at this point in the history
  • Loading branch information
zakkak committed Oct 17, 2014
1 parent b8d961d commit d49db0e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions [email protected]/extension.js
Original file line number Diff line number Diff line change
Expand Up @@ -545,7 +545,9 @@ function unoverrideKeybindingsAndPopup() {
// GNOME 3.2 & 3.4: Main.overview._workspacesDisplay
// GNOME 3.6, 3.8: Main.overview._viewSelector._workspacesDisplay
function _getWorkspaceDisplay() {
return Main.overview._workspacesDisplay || Main.overview._viewSelector._workspacesDisplay;
return Main.overview._workspacesDisplay ||
Main.overview.viewSelector._workspacesDisplay ||
Main.overview._viewSelector._workspacesDisplay;
}

/******************
Expand Down Expand Up @@ -1205,7 +1207,7 @@ function modifyNumWorkspaces() {
* To *actually* increase/decrease the number of workspaces (to fire
* notify::n-workspaces), we must use global.screen.append_new_workspace and
* global.screen.remove_workspace.
*
*
* We could just set org.gnome.shell.overrides.dynamic-workspaces to false
* but then we can't drag and drop windows between workspaces (supposedly a
* GNOME 3.4 bug, see the Frippery Static Workspaces extension. Can confirm
Expand Down

0 comments on commit d49db0e

Please sign in to comment.