Selecting an area on the desktop is broken on multi-monitor setups in X11

Bug #1923347 reported by Martin
48
This bug affects 7 people
Affects Status Importance Assigned to Milestone
gnome-shell-extension-desktop-icons-ng (Ubuntu)
Fix Released
Medium
Daniel van Vugt
Hirsute
Fix Released
Medium
Daniel van Vugt
Impish
Fix Released
Medium
Daniel van Vugt

Bug Description

[Impact]

This is a new bug as of yesterday or the day before. If I select an area on the desktop on my rightmost monitor, the origin point of the selection is placed correctly at the cursor position, but other point is offset by the width of the leftmost monitor (see attached screenshot).

Basically, the origin point is correctly at (cursor X, cursor Y), but the other point is at (cursor X + monitor offset X, cursor Y + monitor offset Y).

[Test Plan]

Set up two monitors side-by-side and log into 'Ubuntu on Xorg'. Now on the rightmost monitor select an area of the desktop. Ensure the corner of the selection always matches the current cursor position.

[Where problems could occur]

Anywhere in the desktop icons selection behaviour. Unlikely given all that is changing is the removal of an optional optimization.

[Other Info]

ProblemType: Bug
DistroRelease: Ubuntu 21.04
Package: gnome-shell 3.38.4-1ubuntu1
ProcVersionSignature: Ubuntu 5.11.0-13.14-generic 5.11.7
Uname: Linux 5.11.0-13-generic x86_64
NonfreeKernelModules: nvidia_modeset nvidia
ApportVersion: 2.20.11-0ubuntu62
Architecture: amd64
CasperMD5CheckResult: unknown
CurrentDesktop: ubuntu:GNOME
Date: Sun Apr 11 14:04:05 2021
DisplayManager: gdm3
InstallationDate: Installed on 2019-09-14 (574 days ago)
InstallationMedia: Ubuntu 19.04 "Disco Dingo" - Release amd64 (20190416)
RelatedPackageVersions: mutter-common 3.38.4-1ubuntu1
SourcePackage: gnome-shell
UpgradeStatus: Upgraded to hirsute on 2021-01-07 (93 days ago)

Revision history for this message
Martin (martid0311) wrote :
Revision history for this message
Daniel van Vugt (vanvugt) wrote :
affects: gnome-shell (Ubuntu) → gnome-shell-extension-desktop-icons-ng (Ubuntu)
Changed in gnome-shell-extension-desktop-icons-ng (Ubuntu):
assignee: nobody → Daniel van Vugt (vanvugt)
Revision history for this message
Daniel van Vugt (vanvugt) wrote :
Changed in gnome-shell-extension-desktop-icons-ng (Ubuntu):
importance: Undecided → High
status: New → Confirmed
summary: - Selecting an area on the desktop is broken on multi-monitor setups in
- X11
+ Selecting an area on the desktop is broken on multi-monitor setups
summary: - Selecting an area on the desktop is broken on multi-monitor setups
+ Selecting an area on the desktop is broken on multi-monitor setups in
+ X11
Changed in gnome-shell-extension-desktop-icons-ng (Ubuntu):
status: Confirmed → In Progress
no longer affects: gnome-shell-extension-desktop-icons-ng
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

It appears the fix for bug 1925095 also resolved this issue.

Changed in gnome-shell-extension-desktop-icons-ng (Ubuntu):
status: In Progress → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package gnome-shell-extension-desktop-icons-ng - 0.17.0-1ubuntu1

---------------
gnome-shell-extension-desktop-icons-ng (0.17.0-1ubuntu1) impish; urgency=medium

  * Merge with Debian, remaining changes:
    - d/p/fileItem.js_Add_support_for_rendering_at_high_DPI_scales.patch
    - desktopGrid_Compare_rubberband_bounds_in_global_coord.patch
  * d/p/stylesheet_Apply_text-shadow_once.patch:
    - Dropped — applied upstream

  [ Daniel van Vugt ]
  * d/p/desktopGrid_Get_the_latest_cursor_positon_on_motion.patch:
    - Dropped due to regression (LP: #1925095, LP: #1923347)
  * d/p/desktopGrid_Compare_rubberband_bounds_in_global_coord.patch:
    - Replaces Test_if_rubber_band_offscreen_in_loc_coord.patch
      (LP: #1922211)

gnome-shell-extension-desktop-icons-ng (0.17.0-1) unstable; urgency=medium

  * Initial release (closes: #987291)

 -- Gunnar Hjalmarsson <email address hidden> Thu, 06 May 2021 18:32:02 +0200

Changed in gnome-shell-extension-desktop-icons-ng (Ubuntu):
status: Fix Committed → Fix Released
Changed in gnome-shell-extension-desktop-icons-ng (Ubuntu Hirsute):
assignee: nobody → Daniel van Vugt (vanvugt)
Changed in gnome-shell-extension-desktop-icons-ng (Ubuntu Hirsute):
status: New → Triaged
importance: Undecided → Medium
Changed in gnome-shell-extension-desktop-icons-ng (Ubuntu Impish):
importance: High → Medium
Changed in gnome-shell-extension-desktop-icons-ng (Ubuntu Hirsute):
status: Triaged → In Progress
description: updated
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Here's the fix for hirsute.

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

I haven't updated salsa git yet because it seems to be broken right now, for unrelated reasons.

Revision history for this message
Gunnar Hjalmarsson (gunnarhj) wrote :

Sponsored to hirsute.

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

Gunnar,

There's nothing in hirsute proposed yet. Are you sure it's queued?

Revision history for this message
Gunnar Hjalmarsson (gunnarhj) wrote :

Yes. It's waiting for the SRU team approval here:

https://launchpad.net/ubuntu/hirsute/+queue?queue_state=1

Revision history for this message
Steve Langasek (vorlon) wrote : Please test proposed package

Hello Martin, or anyone else affected,

Accepted gnome-shell-extension-desktop-icons-ng into hirsute-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/gnome-shell-extension-desktop-icons-ng/0.15.0-0ubuntu4.1 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, what testing has been performed on the package and change the tag from verification-needed-hirsute to verification-done-hirsute. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-hirsute. In either case, without details of your testing we will not be able to proceed.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance for helping!

N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.

Changed in gnome-shell-extension-desktop-icons-ng (Ubuntu Hirsute):
status: In Progress → Fix Committed
tags: added: verification-needed verification-needed-hirsute
Revision history for this message
Martin (martid0311) wrote :

I just updated to hirsuite-proposed. 0.15.0-0ubuntu4.1 fixes the issue of the offset rubber band.

However, it doesn't fix a related but smaller issue: The monitor that I'm *not* doing the selection on gets a thin orange line on the edge adjacent to the monitor that I *am* doing the selection on. Attached is a screenshot where I'm making a selection on the left screen, so the leftmost edge of the right screen gets an orange line. This issue was also present before the update though, and is visible in my original post's screenshot. This might be a completely unrelated problem which deserves its own issue thread.

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

Fix verified in 0.15.0-0ubuntu4.1.

Martin, please open a new bug for the issue you describe.

tags: added: verification-done verification-done-hirsute
removed: verification-needed verification-needed-hirsute
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package gnome-shell-extension-desktop-icons-ng - 0.15.0-0ubuntu4.1

---------------
gnome-shell-extension-desktop-icons-ng (0.15.0-0ubuntu4.1) hirsute; urgency=medium

  [ Daniel van Vugt ]
  * Drop optimization desktopGrid_Get_the_latest_cursor_positon_on_motion.patch
    due to regressions (LP: #1925095, LP: #1923347)

  [ Gunnar Hjalmarsson ]
  * Fix typo in debian/watch.

 -- Daniel van Vugt <email address hidden> Tue, 11 May 2021 14:08:42 +0800

Changed in gnome-shell-extension-desktop-icons-ng (Ubuntu Hirsute):
status: Fix Committed → Fix Released
Revision history for this message
Łukasz Zemczak (sil2100) wrote : Update Released

The verification of the Stable Release Update for gnome-shell-extension-desktop-icons-ng has completed successfully and the package is now being released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.

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.