can't move file/directory by drag and drop by using touch monitor

Bug #1966635 reported by Yuan-Chen Cheng
18
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mutter
Fix Released
Unknown
OEM Priority Project
Triaged
Critical
Unassigned
mutter (Ubuntu)
Fix Released
Medium
Alessandro Astone
Noble
In Progress
Medium
Alessandro Astone
Oracular
In Progress
Medium
Alessandro Astone

Bug Description

[ Impact ]

In the GNOME Wayland desktop session you can't move a file/directory by drag and drop using a touchscreen

[ Test Case ]

0. Log in to a GNOME Wayland desktop session
1. Launch the Nautilus file manager
2. Navigate to a directory with at least 1 directory and 1 file
3. Verify that using a touchscreen you're able to drag-and-drop the file into the directory

[ Where problems could occur ]

mutter is the Wayland compositor library that provides graphics and inputs for the GNOME desktop, thus is a critical component.
Problems could manifest with mouse/touch input not working anymore, or sudden log-out if gnome-shell crashes.

tags: added: 2-in-1 jammy
Changed in oem-priority:
importance: Undecided → Wishlist
tags: added: oem-priority
Revision history for this message
Sebastien Bacher (seb128) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. Unfortunately, we cannot work on this bug because your description didn't include enough information. You may find it helpful to read "How to report bugs effectively" http://www.chiark.greenend.org.uk/~sgtatham/bugs.html. We'd be grateful if you would then provide a more complete description of the problem.

We have instructions on debugging some types of problems at http://wiki.ubuntu.com/DebuggingProcedures.

At a minimum, we need:

1. The specific steps or actions you took that caused you to encounter the problem.
2. The behavior you expected.
3. The behavior you actually encountered (in as much detail as possible).

Please also ensure that you include the release and flavour of Ubuntu that you are using.

Thank you!

Changed in nautilus (Ubuntu):
importance: Undecided → Low
status: New → Incomplete
Revision history for this message
Yuan-Chen Cheng (ycheng-twn) wrote (last edit ):

video captured as running jammy, updated @ 2022/03/29, x11 mode. (It works on x11 mode, but it's not on Wayland mode)

To move a file by drag and drop in x11 mode, need to move fast. If you check the video, if the finger moves too slow, it will show the context menu, and no longer be able to move the file around.

Revision history for this message
Yuan-Chen Cheng (ycheng-twn) wrote :

The output of "dpkg -l" as capture video in #2.

Revision history for this message
Sebastien Bacher (seb128) wrote :

sorry but the description is unclear, you mention that it doesn't work in wayland, is that the issue you report? then you mention that hold the press opens the context menu, is that the issue or another one?

Revision history for this message
Yuan-Chen Cheng (ycheng-twn) wrote :

Yes, it's not working in Wayland mode, and that's the issue.

I don't know if gnome/nautilus have this feature (dnd file to move it by using touch monitor)

Maybe it's not and just happened to partially work on x11 mode (if you check the video I upload, which is x11 mode)

If gnome/nautilus does not have this feature, I think this is a good feature to have. (May need to think the proper way to)

For the context menu in Wayland mode for the directory, I create lp:1964091.

Revision history for this message
Sebastien Bacher (seb128) wrote :

https://gitlab.gnome.org/GNOME/gtk/-/issues/2649 seems to describe a similar issue

Andy Chi (andch)
tags: added: originate-from-1981676 somerville
Andy Chi (andch)
tags: added: originate-from-1982904 stella
jeremyszu (os369510)
Changed in oem-priority:
assignee: nobody → jeremyszu (os369510)
status: New → Confirmed
jeremyszu (os369510)
no longer affects: gnome-shell-extension-desktop-icons-ng
jeremyszu (os369510)
no longer affects: gnome-shell-extension-desktop-icons-ng (Ubuntu)
Revision history for this message
jeremyszu (os369510) wrote (last edit ):

After some checks, it seems because data_device_start_drag() doesn't support MetaWaylandTouch.

The fix will impact the mutter architecture and it's more likely a feature request in mutter so far.
It can be workaround by either sync MetaWaylandPointer motion and MetaWaylandTouch when meta_wayland_seat_update() or meta_wayland_seat_handle_event() with some tweaks. or some changes in meta_wayland_data_device_start_drag().

As maintainer mentions[1] the drag feature is refactoring

part.1: https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2068
part.2: https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2099
part.3: https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2100

and this issue might be fixed in part.5...

For both workaround look not suitable with the maintainer's design.
I prefer to wait until the refactoring completed by maintainer.

[1] https://gitlab.gnome.org/GNOME/mutter/-/issues/2393#note_1532698

Changed in oem-priority:
assignee: jeremyszu (os369510) → nobody
tags: added: originate-from-1993110
Revision history for this message
Jay Chen (jay-ch) wrote :

Understand this refactoring work is handled by the maintainer and no release date committed at this point.

Still want to add this in a wish list since this issue is really causing bad user experience in Wayland mode.

I am asking a fix could land by November '22 for PC OEM platforms with touch screen in production, if at all possible.

Changed in mutter:
status: Unknown → New
Yao Wei (medicalwei)
tags: added: originate-from-1997210
Dirk Su (dirksu)
tags: added: originate-from-1996495
tags: added: touch touchscreen
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

See also bug 1813441 but that suggests it should have been working since the release of desktop-icons-ng.

Yao Wei (medicalwei)
tags: added: originate-from-1996036
Dirk Su (dirksu)
tags: added: originate-from-1996155
Andy Chi (andch)
tags: added: originate-from-2000750
sheldonwang (shelw)
tags: added: originate-from-2002265
jeremyszu (os369510)
tags: added: originate-from-2003169
Andy Chi (andch)
tags: added: originate-from-2006441
tags: added: originate-from-2006547
Bin Li (binli)
tags: added: originate-from-2006685 sutton
Andy Chi (andch)
tags: added: originate-from-2007815
Revision history for this message
Rex Tsai (chihchun) wrote :

Changed the bug importance of oem-priority to Critical, since it impacts the user experience on Wayland and failed on Ubuntu Desktop certification requirement.

Changed in oem-priority:
importance: Wishlist → Critical
Rex Tsai (chihchun)
Changed in oem-priority:
status: Confirmed → Triaged
Andy Chi (andch)
tags: added: originate-from-2019935
tags: added: originate-from-2021934
Max Lee (max-lee)
tags: added: originate-from-2022991
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

That's a lot of private proprietary bugs. Are you sure you can't close most of them as duplicates of each other?

Revision history for this message
jeremyszu (os369510) wrote :

They are used for different platform of different OEM. The OEM platform owner tracks specific platform bugs by platform tag in the private bug and we are not able to share the platform information cross OEM.

Revision history for this message
Daniel van Vugt (vanvugt) wrote (last edit ):
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

See also bug 2029416.

tags: added: originate-from-2033591
Revision history for this message
Kent Lin (kent-jclin) wrote :

Still fail on Ubuntu 23.10.01
nautilus: 45-rc

tags: added: mantic
tags: added: originate-from-2045839
Revision history for this message
Zorro Zhang (zorro-zhang) wrote :

Confirmed it's workable under Ubuntu 24.04 GA release on XPS 13, Wayland mode.

Revision history for this message
Leo Lin (0xff07) wrote :

Hi @zorro-zhang. Could you share how you tested it? I tried on both Dell and HP platforms on Noble, and none of them seemed to work.

tags: added: udeng-4073
tags: added: jira-somerville-29
tags: added: jira-somerville-413
tags: added: jira-somerville-858
no longer affects: mutter (Ubuntu Noble)
no longer affects: mutter (Ubuntu Jammy)
Changed in nautilus (Ubuntu):
status: Incomplete → Won't Fix
Changed in mutter (Ubuntu):
status: New → Won't Fix
Changed in nautilus (Ubuntu):
status: Won't Fix → Fix Released
Changed in nautilus (Ubuntu Noble):
status: New → In Progress
assignee: nobody → Alessandro Astone (aleasto)
Changed in nautilus (Ubuntu):
importance: Low → High
Changed in nautilus (Ubuntu Noble):
importance: Undecided → High
Changed in nautilus (Ubuntu):
status: Fix Released → In Progress
assignee: nobody → Alessandro Astone (aleasto)
description: updated
tags: added: udeng-4959
removed: udeng-4073
Changed in mutter (Ubuntu):
status: Won't Fix → In Progress
assignee: nobody → Alessandro Astone (aleasto)
Revision history for this message
Alessandro Astone (aleasto) wrote :

Not a bug in Nautilus.

Mutter fix proposed upstream: https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/4091

Verified the backport for noble which requires 2 additional fixes from upstream

no longer affects: nautilus (Ubuntu)
no longer affects: nautilus (Ubuntu Jammy)
no longer affects: nautilus (Ubuntu Noble)
no longer affects: mutter (Ubuntu)
Changed in mutter (Ubuntu):
status: New → In Progress
Changed in mutter (Ubuntu Noble):
status: New → In Progress
Changed in mutter (Ubuntu):
assignee: nobody → Alessandro Astone (aleasto)
Changed in mutter (Ubuntu Noble):
assignee: nobody → Alessandro Astone (aleasto)
Changed in mutter (Ubuntu):
importance: Undecided → High
Changed in mutter (Ubuntu Noble):
importance: Undecided → High
tags: added: jira-cpl-59
Changed in mutter:
status: New → Fix Released
description: updated
no longer affects: mutter (Ubuntu Noble)
no longer affects: mutter (Ubuntu)
Changed in mutter (Ubuntu):
status: New → In Progress
Changed in mutter (Ubuntu Noble):
status: New → In Progress
Changed in mutter (Ubuntu Oracular):
status: New → In Progress
Changed in mutter (Ubuntu):
assignee: nobody → Alessandro Astone (aleasto)
Changed in mutter (Ubuntu Noble):
assignee: nobody → Alessandro Astone (aleasto)
Changed in mutter (Ubuntu Oracular):
assignee: nobody → Alessandro Astone (aleasto)
Changed in mutter (Ubuntu):
importance: Undecided → Medium
Changed in mutter (Ubuntu Noble):
importance: Undecided → Medium
Changed in mutter (Ubuntu Oracular):
importance: Undecided → Medium
tags: added: fixed-in-mutter-46.7 fixed-in-mutter-47.2 fixed-upstream
Changed in mutter (Ubuntu):
status: In Progress → Fix Committed
milestone: none → ubuntu-25.04
Changed in mutter (Ubuntu Noble):
milestone: none → noble-updates
Changed in mutter (Ubuntu Oracular):
milestone: none → oracular-updates
Dirk Su (dirksu)
tags: added: jira-stella-487
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package mutter - 47.4-1ubuntu2

---------------
mutter (47.4-1ubuntu2) plucky; urgency=medium

  [ Alessandro Astone ]
  * Add proposed patch to fix tests on Ubuntu

 -- Marco Trevisan (Treviño) <email address hidden> Tue, 21 Jan 2025 19:41:56 +0100

Changed in mutter (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.