bd9c5f
From 9115f6e7962b97c3ee2fbef7b195b7116e62c070 Mon Sep 17 00:00:00 2001
bd9c5f
From: Carlos Garnacho <carlosg@gnome.org>
bd9c5f
Date: Fri, 13 Dec 2019 18:14:51 +0100
bd9c5f
Subject: [PATCH] workspace: Pass device to startDrag()
bd9c5f
bd9c5f
This is necessary to make DnD operations work from tablet devices on
bd9c5f
wayland, as it's not the same onscreen pointer sprite than mice. Fixes
bd9c5f
window DnD in the overview on tablet devices, no longer having them stick
bd9c5f
to the wrong pointer.
bd9c5f
bd9c5f
https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/897
bd9c5f
---
bd9c5f
 js/ui/workspace.js | 2 +-
bd9c5f
 1 file changed, 1 insertion(+), 1 deletion(-)
bd9c5f
bd9c5f
diff --git a/js/ui/workspace.js b/js/ui/workspace.js
bd9c5f
index 1e9bedc28..d470f7f40 100644
bd9c5f
--- a/js/ui/workspace.js
bd9c5f
+++ b/js/ui/workspace.js
bd9c5f
@@ -431,7 +431,7 @@ var WindowClone = GObject.registerClass({
bd9c5f
                     return;
bd9c5f
                 let [x, y] = action.get_coords();
bd9c5f
                 action.release();
bd9c5f
-                this._draggable.startDrag(x, y, global.get_current_time(), this._dragTouchSequence);
bd9c5f
+                this._draggable.startDrag(x, y, global.get_current_time(), this._dragTouchSequence, event.get_device());
bd9c5f
             });
bd9c5f
         } else {
bd9c5f
             this.emit('show-chrome');
bd9c5f
-- 
bd9c5f
2.23.0
bd9c5f