[gnome-shell/gnome-3-28] overview: Use whole stage size for cover pane



commit 82886b7ee8571c797b06386e0e78c4511d92b005
Author: verdre <gitlab v0yd nl>
Date:   Tue Jul 24 12:45:03 2018 +0000

    overview: Use whole stage size for cover pane
    
    We show a cover pane on top of the overview during transitions to
    prevent issues caused by clicks and mouseover events when the overview
    is not ready. Right now, this pane is only being shown on the primary
    monitor, which obviosly allows interactions to happen before the
    animations are finished on the secondary monitors.
    
    To fix this, use the size of the whole stage for the cover pane.
    
    
    (cherry picked from commit 02d06bb1f386d7d35e8d830769243490b3953983)

 js/ui/overview.js | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/js/ui/overview.js b/js/ui/overview.js
index 224057640..6a463c0c9 100644
--- a/js/ui/overview.js
+++ b/js/ui/overview.js
@@ -393,10 +393,8 @@ var Overview = new Lang.Class({
         if (!Main.layoutManager.primaryMonitor)
             return;
 
-        let workArea = Main.layoutManager.getWorkAreaForMonitor(Main.layoutManager.primaryIndex);
-
-        this._coverPane.set_position(0, workArea.y);
-        this._coverPane.set_size(workArea.width, workArea.height);
+        this._coverPane.set_position(0, 0);
+        this._coverPane.set_size(global.screen_width, global.screen_height);
 
         this._updateBackgrounds();
     },


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