Skip to content

Wrong focus when using workspaces only on the Primary monitor #1577

Description

@DrOptix

(1) Issue/Bug Description:
When moving from workspace to workspace using keybindings and workspaces only active on the main screen after a workspace switch the focused window is the window that stays open on the secondary monitor.

(2) Steps to reproduce (if you know):

  1. Have two monitors, workspaces active only on the Primary monitor
  2. Open Browser on Primary monitor in Workspace 1.
  3. Open Terminal on Secondary monitor
  4. Open TextEditor on Primary monitor in Workspace 2
  5. At this moment you should be in Workspace 2 with TextEditor focused.
  6. Move to Workspace 1 using <Super>1.
  7. Workspace 1 is active, but the focus is on Terminal from Secondary monitor -- Expected
  8. Focus Browser
  9. Move to Workspace 2 using <Super>2
  10. Focus is set to Terminal -- Wrong
  11. Manually focus TextEditor
  12. Switch to Workspace 1 using <Super>1
  13. Focus is set to Terminal -- Wrong

(3) Expected behavior:
I expect the focus to remain on the last window I used on that workspace.
If I use workspaces on both monitors all is fine.
Only with workspaces only on the Primary monitor I get the problem

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

NAME="Fedora Linux"
VERSION="37 (Workstation Edition)"
ID=fedora
VERSION_ID=37
VERSION_CODENAME=""
PLATFORM_ID="platform:f37"
PRETTY_NAME="Fedora Linux 37 (Workstation Edition)"
ANSI_COLOR="0;38;2;60;110;180"
LOGO=fedora-logo-icon
CPE_NAME="cpe:/o:fedoraproject:fedora:37"
DEFAULT_HOSTNAME="fedora"
HOME_URL="https://fedoraproject.org/"
DOCUMENTATION_URL="https://docs.fedoraproject.org/en-US/fedora/f37/system-administrators-guide/"
SUPPORT_URL="https://ask.fedoraproject.org/"
BUG_REPORT_URL="https://bugzilla.redhat.com/"
REDHAT_BUGZILLA_PRODUCT="Fedora"
REDHAT_BUGZILLA_PRODUCT_VERSION=37
REDHAT_SUPPORT_PRODUCT="Fedora"
REDHAT_SUPPORT_PRODUCT_VERSION=37
SUPPORT_END=2023-11-14
VARIANT="Workstation Edition"
VARIANT_ID=workstation

(5) Gnome Shell version:
GNOME Shell 43.2

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

Being on Fedora bellow is the output from dnf info gnome-shell-extension-pop-shell.

Name         : gnome-shell-extension-pop-shell
Version      : 1.2.0^9.886a069
Release      : 1.fc37
Architecture : noarch
Size         : 418 k
Source       : gnome-shell-extension-pop-shell-1.2.0^9.886a069-1.fc37.src.rpm
Repository   : @System
From repo    : updates
Summary      : GNOME Shell extension for advanced tiling window management
URL          : https://github.com/pop-os/shell
License      : GPL-3.0-only
Description  : Pop Shell is a keyboard-driven layer for GNOME Shell which allows for quick and
             : sensible navigation and management of windows.  The core feature of Pop Shell
             : is the addition of advanced tiling window management - a feature that has been
             : highly-sought within our community.  For many - ourselves included - i3wm has
             : become the leading competitor to the GNOME desktop.

(7) Where was Pop Shell installed from:
From Fedora repositories.

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

They are physically and virtually staked like this:

+-----------+
|  Primary  |
+-----------+
| Secondary |
+-----------+

(9) Other Installed/Enabled Extensions:

(10) Other Notes:
Workspace switching key bindings I use:

gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-1 "['<Super>1']" &&
    gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-2 "['<Super>2']" &&
    gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-3 "['<Super>3']" &&
    gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-4 "['<Super>4']" &&
    gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-5 "['<Super>5']" && 
    gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-6 "['<Super>6']" &&
    gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-7 "['<Super>7']" && 
    gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-8 "['<Super>8']" && 
    gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-9 "['<Super>9']" && 
    gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-10 "['<Super>0']" 

UPDATE:
I'll try to provide as many details as I can, just tell me how I can improve this bug report.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions