Desktop right click menu appears in the wrong place if a Terminal window is open

Bug #1842910 reported by Daniel van Vugt
30
This bug affects 5 people
Affects Status Importance Assigned to Milestone
GNOME Shell
Fix Released
Unknown
gnome-shell (Ubuntu)
Fix Released
Medium
Daniel van Vugt
Eoan
Fix Released
Medium
Daniel van Vugt

Bug Description

Desktop right click menu appears in the wrong place if a Terminal window is open.

1. Open a Terminal

2. Right click on the desktop.

Expected: The menu appears where you click.
Observed: The menu appears near the Terminal window instead.

ProblemType: Bug
DistroRelease: Ubuntu 19.10
Package: gnome-shell-extension-desktop-icons 19.01.3+git20190814.1-1
ProcVersionSignature: Ubuntu 5.2.0-15.16-generic 5.2.9
Uname: Linux 5.2.0-15-generic x86_64
ApportVersion: 2.20.11-0ubuntu7
Architecture: amd64
Date: Thu Sep 5 18:26:24 2019
InstallationDate: Installed on 2019-05-02 (126 days ago)
InstallationMedia: Ubuntu 19.10 "Eoan EANIMAL" - Alpha amd64 (20190501)
PackageArchitecture: all
SourcePackage: gnome-shell-extension-desktop-icons
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Daniel van Vugt (vanvugt) wrote :
tags: added: rls-ee-incoming
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

I can reproduce a similar bug with upstream master gnome-shell but not as bad. That desktop menu appears in the right place but flashes over the terminal window as it is closing.

Sounds like it's probably a gnome-shell bug.

Changed in gnome-shell (Ubuntu):
importance: Undecided → Medium
Changed in gnome-shell-extension-desktop-icons (Ubuntu):
importance: Undecided → Medium
Changed in gnome-shell:
status: Unknown → New
Will Cooke (willcooke)
Changed in gnome-shell (Ubuntu Eoan):
assignee: nobody → Daniel van Vugt (vanvugt)
Changed in gnome-shell-extension-desktop-icons (Ubuntu Eoan):
assignee: nobody → Daniel van Vugt (vanvugt)
tags: removed: rls-ee-incoming
Revision history for this message
amano (jyaku) wrote :

Hmm. At least in the Ubuntu-wayland session I cannot reproduce that.

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

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in gnome-shell (Ubuntu):
status: New → Confirmed
Changed in gnome-shell-extension-desktop-icons (Ubuntu):
status: New → Confirmed
Revision history for this message
Ubuntu QA Website (ubuntuqa) wrote :

This bug has been reported on the Ubuntu ISO testing tracker.

A list of all reports related to this bug can be found here:
http://iso.qa.ubuntu.com/qatracker/reports/bugs/1842910

tags: added: iso-testing
Revision history for this message
Chris Guiver (guiverc) wrote :

I only discovered this earlier today (QA-test on daily, confirmed on two boxes & it's also on this my main 19.10 install) and sorry didn't see this bug before filing.

I've hadn't detected any program as being required to be open for the problem; my notes/observations are in https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/1844601 (but I'll give main points here)

I don't have a terminal (gnome-terminal or other term) open currently, yet the issue still occurs - thus I have issues with title (I think inaccurate). Yes I have had terminal open this session? so does having it open sometime in the past qualify?

I noted the issue occurs with chromium/hexchat/terminal/.. however if audacious is my active window the issue does NOT occur. The last 'active' window is what I felt controlled whether or not the issue occurs - but I'm guessing (based on extremely limited exploration on my used programs)

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

Yes I agree this is probably more to do with the active or focussed window than just Terminals.

Revision history for this message
Chris Guiver (guiverc) wrote :

Pointless observation... Where my cursor is in an active textbox for entry of this comment on launchpad (chromium); this issue occurs. If I close this window OR have have my gmail/askubuntu & other sites on the 'active' chromium window (with no text box), chromium behaves like audacious/rhythmbox (spel?) and the issue does NOT occur.

If I use firefox as main window, if the page does not have a text box the issue won't occur, if I go to youtube no issue, however if i make the search 'text' entry bit active - then move to background and right-click it does occur. Text entry needs to be active (I have no gnome-terminal/xterm/etc open)

I couldn't get it to occur on random apps (like liferea, vlc, ...) that have no text-entry type input.

Changed in gnome-shell-extension-desktop-icons (Ubuntu Eoan):
status: Confirmed → Invalid
Changed in gnome-shell (Ubuntu Eoan):
status: Confirmed → In Progress
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Unfortunately the bug with ubuntu-dock and without it seem to be unrelated. Reverting commit 5481c1899f3d477bbf9f8319fe6ef933f77fc4e1 only fixes the upstream "without" case :(

Changed in gnome-shell-extension-desktop-icons (Ubuntu Eoan):
status: Invalid → Confirmed
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Maybe I meant 'desktop-icons' and not 'ubuntu-dock' in the above.

Anyway, here is a stack trace of the popup menu positioning in the Ubuntu case. It starts in the right place on the desktop and then gets immediately repositioned to the Terminal window's cursor:

Desktop Icons-Message: 15:49:25.500: vv: setDummyCursorGeometry 1217.5523681640625,737.8848876953125 0x0
setDummyCursorGeometry@resource:///org/gnome/shell/ui/layout.js:800:25
_openMenu@/usr/share/gnome-shell/extensions/desktop-icons@csoriano/desktopGrid.js:366:9
_onPressButton@/usr/share/gnome-shell/extensions/desktop-icons@csoriano/desktopGrid.js:501:13
DesktopGrid</<@/usr/share/gnome-shell/extensions/desktop-icons@csoriano/desktopGrid.js:125:68

GNOME Shell-Message: 15:49:25.507: vv: setDummyCursorGeometry 325,149 9x18
setDummyCursorGeometry@resource:///org/gnome/shell/ui/layout.js:800:25
_setDummyCursorGeometry@resource:///org/gnome/shell/ui/ibusCandidatePopup.js:275:9
setPanelService/<@resource:///org/gnome/shell/ui/ibusCandidatePopup.js:176:13

no longer affects: gnome-shell-extension-desktop-icons (Ubuntu)
no longer affects: gnome-shell-extension-desktop-icons (Ubuntu Eoan)
tags: added: fixed-in-3.34.1 fixed-upstream
Changed in gnome-shell:
status: New → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :
Download full text (4.1 KiB)

This bug was fixed in the package gnome-shell - 3.34.1-1ubuntu1

---------------
gnome-shell (3.34.1-1ubuntu1) eoan; urgency=medium

  * Merge with Debian. Remaining changes:
    + Replace gnome-backgrounds dep with ubuntu-wallpapers and Suggests
      gnome-themes-standard-data, gnome-backgrounds
    + Add some Recommends:
      - ubuntu-session (| gnome-session) to have the ubuntu session available
      - xserver-xorg-legacy
      - yaru-theme-gnome-shell for the default ubuntu theming
    + Update debian/gbp.conf with Ubuntu settings
    + gnome-shell-common.install: Install Ubuntu mode
    + gnome-shell-common.prerm: Remove deprecated ubuntu theme alternative
    + ubuntu/desktop_detect.patch:
      - add caching for desktop detection to avoid querying the current
        desktop env variable as iterate through the list each time. For the
        time of the Shell process, we can expect this env variable to stay
        stable.
    + ubuntu/smarter_alt_tab.patch:
      - quick alt-tab (without showing up the switcher) switch only between
        the last window of the last 2 applications to be focused instead of
        raising all windows of those apps.
    + ubuntu/lightdm-user-switching.patch:
      - Allow user switching when using LightDM.
    + ubuntu/lock_on_suspend.patch
      - Respect Ubuntu's lock-on-suspend setting.
    + ubuntu/gdm.patch
      - as gdm is system-wide and not session-wide, ensure gdm has an ubuntu
        styling by default, not impacting the gnome user session though.
    + ubuntu/background_login.patch
      - Change default background color as we modified the default GDM color
        for our ubuntu session. Change it as well here, still applying the
        background noise loading.
    + ubuntu/gdm_alternatives.patch
      - Add support for GDM3 theme alternatives
    + optional-hot-corner.patch
      - enable patch proposed by upstream developer already in package (but
        not in series) to add a settings for optional hot corner activation.
    + volume-Add-back-sound-feedback-on-scroll.patch
      - Fix regression causing missing feedback on volume slider scroll
    + main-show-an-error-message-on-gnome-shell-crash.patch,
      global-make-possible-to-set-debug-flags-dynamically.patch,
      main-increase-the-granularity-of-backtraces-in-SHELL_DEBU.patch,
      main-add-backtrace-crashes-all-and-backtrace-all.patch,
      sessionMode-add-support-for-debugFlags-parameter.patch:
      - Improve debug JS tracing for crash reports
    + st-scroll-view-Handle-the-case-where-scrollbars-are-NULL.patch,
      st-scroll-view-Remove-scrollbars-references-on-dispose.patch:
      - Fix crash on theme changes
    + ubuntu/search-call-XUbuntuCancel-method-on-providers-when-no-dat.patch:
      - stop searches when requested from UI
    + magnifier-Show-cursor-when-magnifier-is-enabled-and-scale.patch:
      - Show monitor scaled cursor when magnifier is enabled
  * Refresh patches through gbp-pq

gnome-shell (3.34.1-1) unstable; urgency=medium

  * New upstream release
    + Allow editing app folder names
    + Do not notify systemd before initialization is complete
    + Don't leak NOTIFY_SOCKET environment vari...

Read more...

Changed in gnome-shell (Ubuntu Eoan):
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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