Backwards compatible with GNOME 40

This commit is contained in:
Tony Houghton
2021-10-10 23:06:20 +01:00
parent dbcf13a079
commit 73b6e55dc1
2 changed files with 7 additions and 2 deletions

View File

@@ -1,5 +1,5 @@
{
"shell-version": ["42"],
"shell-version": ["40", "42"],
"uuid": "multi-monitors-add-on@spin83",
"name": "Multi Monitors Add-On",
"settings-schema": "org.gnome.shell.extensions.multi-monitors-add-on",

View File

@@ -365,7 +365,12 @@ class MultiMonitorsControlsManager extends St.Widget {
this._fixGeometry = 0;
this._visible = false;
let layout = new OverviewControls.ControlsManagerLayout();
let layout
if (OverviewControls.ControlsManagerLayout) {
layout = new OverviewControls.ControlsManagerLayout();
} else {
layout = new OverviewControls.ControlsLayout();
}
super._init({
layout_manager: layout,
x_expand: true,