appDisplay: Remove event blocker

It is unused now.

https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1301
This commit is contained in:
Georges Basile Stavracas Neto 2020-06-04 01:50:49 -03:00
parent 5cfe5bf8c8
commit 8ae99a6898

View File

@ -350,14 +350,6 @@ class AppDisplay extends BaseAppView {
this._scrollView.add_actor(box); this._scrollView.add_actor(box);
this._stack.add_actor(this._scrollView); this._stack.add_actor(this._scrollView);
this._eventBlocker = new St.Widget({
x_expand: true,
y_expand: true,
reactive: true,
visible: false,
});
this._stack.add_actor(this._eventBlocker);
this._scrollView.set_policy(St.PolicyType.NEVER, this._scrollView.set_policy(St.PolicyType.NEVER,
St.PolicyType.EXTERNAL); St.PolicyType.EXTERNAL);
this._adjustment = this._scrollView.vscroll.adjustment; this._adjustment = this._scrollView.vscroll.adjustment;
@ -719,8 +711,6 @@ class AppDisplay extends BaseAppView {
addFolderDialog(dialog) { addFolderDialog(dialog) {
Main.layoutManager.overviewGroup.add_child(dialog); Main.layoutManager.overviewGroup.add_child(dialog);
dialog.connect('open-state-changed', (o, isOpen) => { dialog.connect('open-state-changed', (o, isOpen) => {
this._eventBlocker.visible = isOpen;
if (this._currentDialog) { if (this._currentDialog) {
this._currentDialog.disconnect(this._currentDialogDestroyId); this._currentDialog.disconnect(this._currentDialogDestroyId);
this._currentDialogDestroyId = 0; this._currentDialogDestroyId = 0;
@ -733,7 +723,6 @@ class AppDisplay extends BaseAppView {
this._currentDialogDestroyId = dialog.connect('destroy', () => { this._currentDialogDestroyId = dialog.connect('destroy', () => {
this._currentDialog = null; this._currentDialog = null;
this._currentDialogDestroyId = 0; this._currentDialogDestroyId = 0;
this._eventBlocker.visible = false;
}); });
} }
this._updateIconOpacities(isOpen); this._updateIconOpacities(isOpen);
@ -861,8 +850,6 @@ class AppDisplay extends BaseAppView {
dragMotion: this._onDragMotion.bind(this), dragMotion: this._onDragMotion.bind(this),
}; };
DND.addDragMonitor(this._dragMonitor); DND.addDragMonitor(this._dragMonitor);
this._eventBlocker.visible = false;
} }
_onDragMotion(dragEvent) { _onDragMotion(dragEvent) {
@ -886,7 +873,6 @@ class AppDisplay extends BaseAppView {
this._dragMonitor = null; this._dragMonitor = null;
} }
this._eventBlocker.visible = this._currentDialog !== null;
this._resetOvershoot(); this._resetOvershoot();
} }