From c3284eb8ac7e4ede272de5ab7a147c4780f1e3e8 Mon Sep 17 00:00:00 2001 From: Ivan Molodetskikh Date: Sat, 30 Jul 2022 21:40:39 -0700 Subject: [PATCH] ControlsManagerLayout: Use primaryMonitor ControlsManager already hardcodes primaryMonitor, so do it here too to skip an expensive search. Part-of: --- js/ui/overviewControls.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/ui/overviewControls.js b/js/ui/overviewControls.js index 4dd9a979d..2d58be7bb 100644 --- a/js/ui/overviewControls.js +++ b/js/ui/overviewControls.js @@ -135,7 +135,7 @@ class ControlsManagerLayout extends Clutter.BoxLayout { const { spacing } = this; - const monitor = Main.layoutManager.findMonitorForActor(this._container); + const monitor = Main.layoutManager.primaryMonitor; const workArea = Main.layoutManager.getWorkAreaForMonitor(monitor.index); const startX = workArea.x - monitor.x; const startY = workArea.y - monitor.y;