diff --git a/js/ui/layout.js b/js/ui/layout.js index 9d481cf0b..aaf9da536 100644 --- a/js/ui/layout.js +++ b/js/ui/layout.js @@ -220,7 +220,8 @@ const LayoutManager = new Lang.Class({ global.stage.add_child(this.uiGroup); this.overviewGroup = new St.Widget({ name: 'overviewGroup', - visible: false }); + visible: false, + reactive: true }); this.addChrome(this.overviewGroup); this.screenShieldGroup = new St.Widget({ name: 'screenShieldGroup', diff --git a/js/ui/overview.js b/js/ui/overview.js index ea6b3ec98..1af870632 100644 --- a/js/ui/overview.js +++ b/js/ui/overview.js @@ -124,9 +124,6 @@ const Overview = new Lang.Class({ Main.layoutManager.overviewGroup.add_child(this._backgroundGroup); this._bgManagers = []; - this._backgroundGroup.connect('scroll-event', - Lang.bind(this, this._onScrollEvent)); - this._desktopFade = new St.Widget(); Main.layoutManager.overviewGroup.add_child(this._desktopFade); @@ -155,6 +152,9 @@ const Overview = new Lang.Class({ dragMotion: Lang.bind(this, this._onDragMotion) }; + + Main.layoutManager.overviewGroup.connect('scroll-event', + Lang.bind(this, this._onScrollEvent)); Main.xdndHandler.connect('drag-begin', Lang.bind(this, this._onDragBegin)); Main.xdndHandler.connect('drag-end', Lang.bind(this, this._onDragEnd));