[gnome-shell/wip/rstrode/login-screen-extensions: 85/134] workspace: Pass device to startDrag()
- From: Ray Strode <halfline src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/wip/rstrode/login-screen-extensions: 85/134] workspace: Pass device to startDrag()
- Date: Thu, 26 Aug 2021 19:31:01 +0000 (UTC)
commit 6374a776a6ea2d67bf7bcf3ece0b1c47bf3f1188
Author: Carlos Garnacho <carlosg gnome org>
Date: Fri Dec 13 18:14:51 2019 +0100
workspace: Pass device to startDrag()
This is necessary to make DnD operations work from tablet devices on
wayland, as it's not the same onscreen pointer sprite than mice. Fixes
window DnD in the overview on tablet devices, no longer having them stick
to the wrong pointer.
https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/897
js/ui/workspace.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/js/ui/workspace.js b/js/ui/workspace.js
index 9c58861449..d3679b4283 100644
--- a/js/ui/workspace.js
+++ b/js/ui/workspace.js
@@ -383,7 +383,7 @@ var WindowClone = class {
return;
let [x, y] = action.get_coords();
action.release();
- this._draggable.startDrag(x, y, global.get_current_time(), this._dragTouchSequence);
+ this._draggable.startDrag(x, y, global.get_current_time(), this._dragTouchSequence,
event.get_device());
});
} else {
this.emit('show-chrome');
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]