()
| 40 | overviewShown = false; |
| 41 | |
| 42 | constructor() { |
| 43 | super({}); |
| 44 | this.panelsVisible = Me.stateManager.getState('panels-visible') ?? true; |
| 45 | |
| 46 | Main.layoutManager.uiGroup.insert_child_above( |
| 47 | this, |
| 48 | global.window_group |
| 49 | ); |
| 50 | |
| 51 | this.monitorsContainer = []; |
| 52 | this.aboveContainer = new Clutter.Actor(); |
| 53 | this.add_child(this.aboveContainer); |
| 54 | this.backgroundGroup = new Meta.BackgroundGroup({}); |
| 55 | this.setBlurBackground(Me.msThemeManager.blurBackground); |
| 56 | this.add_child(this.backgroundGroup); |
| 57 | |
| 58 | this.primaryMonitorContainer = new PrimaryMonitorContainer( |
| 59 | this, |
| 60 | assertNotNull(this.primaryMonitor), |
| 61 | this.backgroundGroup, |
| 62 | { |
| 63 | clip_to_allocation: true, |
| 64 | } |
| 65 | ); |
| 66 | this.add_child(this.primaryMonitorContainer); |
| 67 | this.panel = this.primaryMonitorContainer.panel; |
| 68 | this.primaryMonitorContainer.setMsWorkspaceActor( |
| 69 | Me.msWorkspaceManager.getActivePrimaryMsWorkspace().msWorkspaceActor |
| 70 | ); |
| 71 | for (const externalMonitor of this.externalMonitors) { |
| 72 | const container = new MonitorContainer( |
| 73 | this, |
| 74 | externalMonitor, |
| 75 | this.backgroundGroup, |
| 76 | { |
| 77 | clip_to_allocation: true, |
| 78 | } |
| 79 | ); |
| 80 | this.monitorsContainer.push(container); |
| 81 | this.add_child(container); |
| 82 | } |
| 83 | |
| 84 | this.registerToSignals(); |
| 85 | this.onMsWorkspacesChanged(); |
| 86 | this.updatePanelVisibilities(); |
| 87 | this.updateFullscreenMonitors(); |
| 88 | } |
| 89 | get primaryMonitor() { |
| 90 | return Main.layoutManager.primaryMonitor; |
| 91 | } |
nothing calls this directly
no test coverage detected