Desktop icon alignment `floor()`s instead of `round()`

Bug #1462267 reported by Shahbaz Youssefi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Nautilus
Fix Released
Low
nautilus (Ubuntu)
Fix Released
Low
Unassigned

Bug Description

When dragging to arrange icons on the desktop, there is an invisible grid that the icons get snapped to. The x-axis has larger distance between grid lines and this bug is more visible in that direction.

Steps to reproduce:

1. Take an icon
2. Drag a few pixels to left
3. Release icon

Expected behavior:

- You are more or less still in the same position, so the icon should go back to where it was before dragging

Observed behavior:

- The icon jumps a long way to the left

You can recreate this with "one pixel up" as well, where the icon jumps up, although not as dramatically as with the x-axis. The behavior is the same regardless of the icon size.

I am reporting this as a bug, because it is highly annoying to move an icon to more or less where you want, only to find it jumps back. I think the correct behavior would be for the icon to snap to the closest grid lines, rather than the one on its left/up.

---

Note: this is not a fresh install.

$ lsb_release -rd
Description: Ubuntu 14.04.2 LTS
Release: 14.04

$ apt-cache policy nautilus
nautilus:
  Installed: 1:3.10.1-0ubuntu9.8
  Candidate: 1:3.10.1-0ubuntu9.8
  Version table:
 *** 1:3.10.1-0ubuntu9.8 0
        500 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main i386 Packages
        100 /var/lib/dpkg/status
     1:3.10.1-0ubuntu8 0
        500 http://us.archive.ubuntu.com/ubuntu/ trusty/main i386 Packages

Note sure if desktop is nautilus or unity:

$ apt-cache policy unity
unity:
  Installed: 7.2.5+14.04.20150521.1-0ubuntu1
  Candidate: 7.2.5+14.04.20150521.1-0ubuntu1
  Version table:
 *** 7.2.5+14.04.20150521.1-0ubuntu1 0
        500 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main i386 Packages
        100 /var/lib/dpkg/status
     7.2.2+14.04.20140714-0ubuntu1.1 0
        500 http://us.archive.ubuntu.com/ubuntu/ trusty-security/main i386 Packages
     7.2.0+14.04.20140416-0ubuntu1 0
        500 http://us.archive.ubuntu.com/ubuntu/ trusty/main i386 Packages

ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: nautilus 1:3.10.1-0ubuntu9.8
Uname: Linux 3.16.7-rtai+ i686
NonfreeKernelModules: rtai_rtdm rtai_mbx rtai_fifos rtai_shm rtai_sem rtai_sched rtai_hal
ApportVersion: 2.14.1-0ubuntu3.11
Architecture: i386
CurrentDesktop: Unity
Date: Fri Jun 5 10:45:02 2015
ExecutablePath: /usr/bin/nautilus
GsettingsChanges: b'org.gnome.nautilus.list-view' b'default-column-order' b"['name', 'size', 'type', 'date_modified', 'date_accessed', 'owner', 'group', 'permissions', 'mime_type', 'where']"
InstallationDate: Installed on 2014-07-04 (335 days ago)
InstallationMedia: Ubuntu 14.04 LTS "Trusty Tahr" - Release i386 (20140417)
SourcePackage: nautilus
UpgradeStatus: No upgrade log present (probably fresh install)

Tags: trusty vivid
Revision history for this message
Shahbaz Youssefi (shabbyx) wrote :
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. The issue you are reporting is an upstream one and it would be nice if somebody having it could send the bug to the developers of the software by following the instructions at https://wiki.ubuntu.com/Bugs/Upstream/GNOME. If you have done so, please tell us the number of the upstream bug (or the link), so we can add a bugwatch that will inform us about its status. Thanks in advance.

Changed in nautilus (Ubuntu):
importance: Undecided → Low
Revision history for this message
Shahbaz Youssefi (shabbyx) wrote :
Revision history for this message
Sebastien Bacher (seb128) wrote :

thanks

Changed in nautilus (Ubuntu):
status: New → Triaged
Changed in nautilus:
importance: Unknown → Low
status: Unknown → Confirmed
Revision history for this message
Shahbaz Youssefi (shabbyx) wrote :

Finally tracked it down myself. Here is the result: https://git.gnome.org/browse/nautilus/commit/?id=984438f

Changed in nautilus (Ubuntu):
status: Triaged → Fix Committed
Changed in nautilus:
status: Confirmed → Fix Released
Revision history for this message
Sebastien Bacher (seb128) wrote :

thanks!

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package nautilus - 1:3.18.4.is.3.14.3-0ubuntu3

---------------
nautilus (1:3.18.4.is.3.14.3-0ubuntu3) xenial; urgency=medium

  * debian/patches/git_desktop_grid.patch:
    - use the correct grid point when moving icons on the desktop view,
      (lp: #1462267)
  * debian/patches/ubuntu_new_gtksidebar.patch:
    - GtkPlacesSidebar changed in GTK 3.18, update to the new version, that
      restores special items on context menus (eject, format, etc) and the
      sidebar item to browse remote locations (lp: #1548977)

 -- Sebastien Bacher <email address hidden> Fri, 18 Mar 2016 09:42:31 +0100

Changed in nautilus (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.