workspacesView: Fix copy-paste error

Calling both window-drag handlers on drag begin messes up our tracking,
and prevents the swipe tracker from being disabled during drag operations.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1551>
This commit is contained in:
Ivan Molodetskikh 2020-12-27 19:33:34 +00:00 committed by Florian Müllner
parent 3f49c886fa
commit c401759c1a

View File

@ -394,7 +394,7 @@ class WorkspacesDisplay extends St.Widget {
Main.overview.connect('window-drag-begin',
this._windowDragBegin.bind(this));
this._windowDragEndId =
Main.overview.connect('window-drag-begin',
Main.overview.connect('window-drag-end',
this._windowDragEnd.bind(this));
this._overviewShownId = Main.overview.connect('shown', () => {
this._inWindowFade = false;