pop-os / shell

Pop!_OS Shell
GNU General Public License v3.0
4.83k stars 261 forks source link

Most open windows move to the last used workspace after screen lock #957

Open zeeshansayyed opened 3 years ago

zeeshansayyed commented 3 years ago

(1) Issue/Bug Description: I use a two monitor setup on Ubuntu 20.04 with 4 static work-spaces enabled only on the primary display. When I lock my screen and come back to it after some time, I always find that many (not) all windows have moved to the workspace that was last open at the time of locking. This does not happen when you lock and immediate unlock.

I saw a couple of other issues that were similar but not exactly the same. I have been experiencing this since I started using Pop Shell (almost a year now) and have been keeping upto to date with the latest version.

(2) Steps to reproduce (if you know): Open a window in each of the workspaces. Open 2-3 nautilus windows in Workspace 1. Open 2 browser windows in workspace 4 and may be code editors in workspace 2 and 3. Move to workspace 3. Lock the monitor and let it be for a while (I haven't measured exactly when this happens, but I feel a few minutes should do it). It doesn't happen if you immediately unlock. When you unlock after a short break, all the nautilus windows and at least 1 browser windows would have moved to workspace 3.

(3) Expected behavior: The windows should stay in the work-spaces they were in before locking the monitor.

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

NAME="Ubuntu"
VERSION="20.04.2 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04.2 LTS"
VERSION_ID="20.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal

(5) Gnome Shell version: 3.36.7

(6) Pop Shell version (run apt policy pop-shell or provide the latest commit if building locally):

969e2c53d5259aa054d09aad633a77a501d774a7

(7) Where was Pop Shell installed from: Github

(8) Monitor Setup (2 x 1080p, 4K, Primary(Horizontal), Secondary(Vertical), etc): Primary (Horizontal): 3440 x 1440 Secondary (Horizontal): 1920 x 1080

(9) Other Installed/Enabled Extensions:

(10) Other Notes:

jacobgkau commented 3 years ago

This is still happening on 42ff8d4. The behavior is slightly different between 20.04 (3.36) and 21.04 (3.38):

I am seeing this basically every time I run through the regression test checklist. This seems like it could be a duplicate of https://github.com/pop-os/shell/issues/217, but I know it wasn't occurring this often until earlier this year (when this issue was opened), and I'm not seeing an "irreparable state" like that other issue refers to.

zeeshansayyed commented 3 years ago

@mmstick @jacobgkau Does this happen on other setups as well? I haven't tried it on dual monitor system with the same resolution. Also, I had a a request to please prioritize this. I completely understand that as developers you have your own priorities. I love Pop OS shell so much that I have been using it for more than a year despite this issue. Every time I am afk, the windows gather all on one workspace. It can be really annoying at times.

If not the bug, do you want me to try different options to see what might work? I am completely aware of how this works, but I am ready to try things and report the results to you to help fix this.

Thanks

funnylookinhat commented 3 years ago

This is happening to me as well on a clean 21.04 install. I currently have the following configuration:

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

~ ➜ cat /etc/os-release
NAME="Pop!_OS"
VERSION="21.04"
ID=pop
ID_LIKE="ubuntu debian"
PRETTY_NAME="Pop!_OS 21.04"
VERSION_ID="21.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=hirsute
UBUNTU_CODENAME=hirsute
LOGO=distributor-logo-pop-os

(5) Gnome Shell version:

 ➜ apt-cache policy gnome-shell
gnome-shell:
  Installed: 3.38.4-1ubuntu3~21.04.1ubuntu1pop1~1623339707~21.04~2a1865d
  Candidate: 3.38.4-1ubuntu3~21.04.1ubuntu1pop1~1623339707~21.04~2a1865d
  Version table:
 *** 3.38.4-1ubuntu3~21.04.1ubuntu1pop1~1623339707~21.04~2a1865d 1001
       1001 http://ppa.launchpad.net/system76/pop/ubuntu hirsute/main amd64 Packages
        100 /var/lib/dpkg/status
     3.38.4-1ubuntu3~21.04.1 500
        500 http://us.archive.ubuntu.com/ubuntu hirsute-updates/main amd64 Packages
     3.38.4-1ubuntu2 500
        500 http://us.archive.ubuntu.com/ubuntu hirsute/main amd64 Packages

(6) Pop Shell version (run apt policy pop-shell or provide the latest commit if building locally):

 ➜ apt-cache policy pop-shell
pop-shell:
  Installed: 1.1.0~1627383380~21.04~475b49d
  Candidate: 1.1.0~1628180617~21.04~b76b83b
  Version table:
     1.1.0~1628180617~21.04~b76b83b 1001
       1001 http://ppa.launchpad.net/system76/pop/ubuntu hirsute/main amd64 Packages
       1001 http://ppa.launchpad.net/system76/pop/ubuntu hirsute/main i386 Packages
 *** 1.1.0~1627383380~21.04~475b49d 100
        100 /var/lib/dpkg/status

(7) Where was Pop Shell installed from:

Clean Pop OS 21.04 Install

(8) Monitor Setup (2 x 1080p, 4K, Primary(Horizontal), Secondary(Vertical), etc):

(9) Other Installed/Enabled Extensions:

Workspace Matrix - https://extensions.gnome.org/extension/1485/workspace-matrix/

zeeshansayyed commented 2 years ago

@mmstick I recently used a different wide screen monitor (Samsung) in place of my original wide screen monitor (Acer), keeping the smaller monitor constant. I found that the new setup didn't have the same issue and everything worked as it should. Going to my original setup, the issue still persists. I hope this helps narrow down the bug.

gerritzen commented 2 years ago

Since it says Fixed by #975, I'd like to point out that this bug (or a similar one) still exists. However, after unlocking, the external screen was disabled in gnome-settings. After re-enabling, the manual layout (external as primary screen and laptop at the bottom left) was gone and had to be set again. This has never happened to me before using Pop Shell.

It seems natural that all windows from the workspaces of the external screen are collected on the internal one if it is "disconnected". However, I did not disconnect and vanilla gnome seems to be able to handle this.

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

$ cat /etc/os-release 
NAME="Fedora Linux"
VERSION="35 (Workstation Edition)"
ID=fedora
VERSION_ID=35
VERSION_CODENAME=""
PLATFORM_ID="platform:f35"
PRETTY_NAME="Fedora Linux 35 (Workstation Edition)"
ANSI_COLOR="0;38;2;60;110;180"
LOGO=fedora-logo-icon
CPE_NAME="cpe:/o:fedoraproject:fedora:35"
HOME_URL="https://fedoraproject.org/"
DOCUMENTATION_URL="https://docs.fedoraproject.org/en-US/fedora/f35/system-administrators-guide/"
SUPPORT_URL="https://ask.fedoraproject.org/"
BUG_REPORT_URL="https://bugzilla.redhat.com/"
REDHAT_BUGZILLA_PRODUCT="Fedora"
REDHAT_BUGZILLA_PRODUCT_VERSION=35
REDHAT_SUPPORT_PRODUCT="Fedora"
REDHAT_SUPPORT_PRODUCT_VERSION=35
PRIVACY_POLICY_URL="https://fedoraproject.org/wiki/Legal:PrivacyPolicy"
VARIANT="Workstation Edition"
VARIANT_ID=workstation

(5) Gnome Shell version:

$ gnome-shell --version
GNOME Shell 41.4

(6) Pop Shell version (run apt policy pop-shell or provide the latest commit if building locally):

# dnf list gnome-shell-extension-pop-shell
Last metadata expiration check: 5:50:11 ago on Di 19 Apr 2022 08:06:07.
Installed Packages
gnome-shell-extension-pop-shell.noarch       1.2.0^5.21745c4-1.fc35        @updates

(7) Where was Pop Shell installed from:

Fedora Repositories (see above) (8) Monitor Setup (2 x 1080p, 4K, Primary(Horizontal), Secondary(Vertical), etc):

1080p laptop screen, 4k screen (primary) connected via USB-C

(9) Other Installed/Enabled Extensions:

$ gnome-extensions list --enabled

color-picker@tuberry
appindicatorsupport@rgcjonas.gmail.com
remove-alt-tab-delay@daase.net
places-menu@gnome-shell-extensions.gcampax.github.com
launch-new-instance@gnome-shell-extensions.gcampax.github.com
apps-menu@gnome-shell-extensions.gcampax.github.com
no-overview@fthx
refresh-wifi@kgshank.net
task-widget@juozasmiskinis.gitlab.io
system-monitor@paradoxxx.zero.gmail.com
pop-shell@system76.com
OlivierNicole commented 2 years ago

I can confirm the issue, which I just had and which makes it impossible for me to use pop shell.

Config

karimone commented 2 years ago

Same issue with popos 22.04

OS

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

Gnome

GNOME Shell 42.3.1

extensions

Vitals@CoreCoding.com
caffeine@patapon.info
clipboard-indicator@tudmotu.com
cpupower@mko-sl.de
openweather-extension@jenslody.de
refresh-wifi@kgshank.net
sound-output-device-chooser@kgshank.net
improved-workspace-indicator@michaelaquilina.github.io
cosmic-dock@system76.com
cosmic-workspaces@system76.com
ding@rastersoft.com
pop-cosmic@system76.com
pop-shell@system76.com
popx11gestures@system76.com
system76-power@system76.com
ubuntu-appindicators@ubuntu.com
nilesjohnson commented 2 weeks ago

I have this issue after switching to use wayland. To clarify: I'm on pop 22.04. I did not have this problem when using gnome, but I recently switched to wayland to prepare for using the new cosmic desktop.

I tried cosmic, following the instructions on the cosmic-epoch readme. (I do not have nvidia, so I skipped that part.) I had some issues that I realized were just related to wayland (clipboard issues with emacs). So, now I'm using the standard pop os 22.04, but with wayland instead of gnome so that I can work out any other changes wayland might bring me. That switch is when I started seeing this issue. It appears to be similar to #917, but I'm not using a laptop and I'm not changing which monitors are plugged in.