[gnome-shell] workspacesView: Use work area for default geometry



commit 5e4b65d37ef3c9acc2ae4875778173d53ec50e2b
Author: Florian Müllner <fmuellner gnome org>
Date:   Fri Jun 26 01:08:29 2020 +0200

    workspacesView: Use work area for default geometry
    
    The workspace's layout manager keeps the workspace at the same ratio as
    the work area, so it makes more sense to base the views' default geometry
    on that as well than the monitor area we are using right now.
    
    (It shouldn't matter much in practice, as this only affects views on
    non-primary monitors where the work area usually matches the monitor area)
    
    https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1345

 js/ui/workspacesView.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/js/ui/workspacesView.js b/js/ui/workspacesView.js
index 77661b2877..0a7a306b12 100644
--- a/js/ui/workspacesView.js
+++ b/js/ui/workspacesView.js
@@ -22,7 +22,7 @@ var WorkspacesViewBase = GObject.registerClass({
 }, class WorkspacesViewBase extends St.Widget {
     _init(monitorIndex) {
         const { x, y, width, height } =
-            Main.layoutManager.monitors[monitorIndex];
+            Main.layoutManager.getWorkAreaForMonitor(monitorIndex);
 
         super._init({
             style_class: 'workspaces-view',


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]