pop-os / gnome-shell

Pop!_OS fork of https://git.launchpad.net/~ubuntu-desktop/ubuntu/+source/gnome-shell
GNU General Public License v2.0
25 stars 4 forks source link

Stuck in screenshot mode when context menu in Chromium-based app is open #100

Open gondrup opened 2 years ago

gondrup commented 2 years ago

Distribution (run cat /etc/os-release):

NAME="Pop!_OS" VERSION="22.04 LTS" ID=pop ID_LIKE="ubuntu debian" PRETTY_NAME="Pop!_OS 22.04 LTS" VERSION_ID="22.04" HOME_URL="https://pop.system76.com" SUPPORT_URL="https://support.system76.com" BUG_REPORT_URL="https://github.com/pop-os/pop/issues" PRIVACY_POLICY_URL="https://system76.com/privacy" VERSION_CODENAME=jammy UBUNTU_CODENAME=jammy LOGO=distributor-logo-pop-os

Related Application and/or Package Version (run apt policy $PACKAGE NAME):

Google Chrome, Visual Studio Code, Microsoft Edge

Issue/Bug Description:

The area screenshot utility will lock the entire user interface of the system when attempting to use it while context menus are open in some applications. The only way to recover is to switch to another terminal and forcefully kill gnome.

Steps to reproduce (if you know):

  1. Open one of the following applications: Google Chrome, Visual Studio Code, Microsoft Edge (and possibly others)
  2. Right click somewhere to access a context menu
  3. Press the PRTSC key to initiate the area screenshot utility
  4. Click anywhere
  5. The GUI will now be frozen and unusable

Expected behavior:

The screenshot utility would not launch at all when attempting to use it like this, as is the behavior in other applications e.g. Nautilius

Other Notes:

jacobgkau commented 2 years ago

Able to recreate with Chromium.

jacobgkau commented 2 years ago

To clarify (because "GUI crashing" or "GUI freezing" are a little stronger than what I'm seeing), the mouse cursor still moves around when this happens, but I can't interact with anything in screenshot mode, can't finish taking the screenshot, can't exit screenshot mode, and can't use Alt-F2 to restart GNOME, so the user is pretty much stuck when this happens. It seems like the context menu still has some kind of focus.

gondrup commented 2 years ago

To clarify (because "GUI crashing" or "GUI freezing" are a little stronger than what I'm seeing), the mouse cursor still moves around when this happens, but I can't interact with anything in screenshot mode, can't finish taking the screenshot, can't exit screenshot mode, and can't use Alt-F2 to restart GNOME, so the user is pretty much stuck when this happens. It seems like the context menu still has some kind of focus.

Thank you for the clarification, that is the exact behavior I experience.

mkellyxp commented 2 years ago

This is happening with Brave Browser as well, when a