With two monitors, switching workspace always refocuses on a window in Display #1, instead of the primary display

Open
#1,718 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
typescript
Domain
desktop

Research direction

Start by reproducing the workspace-switching behavior with two extended monitors, using the listed four-step setup and monitor arrangement. Trace the workspace switch and focus-selection entry points to determine why Display #1 is chosen; done means focus stays on the primary display or the display containing the previously focused window.

Written by the indexing model from the issue text.

Description

(1) Issue/Bug Description:

If the system is connected with two monitors, switching workspace always refocuses to a window in Display #1. The number is the one set by GPU firmware.

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

  1. Connect the computer to two monitors.
  2. Make sure one extends another (no mirroring).
  3. Open a window on each display.
  4. Switch to another workspace.

(3) Expected behavior:

The focus should be either on a window from the primary display or a window from the display that contains the previously focused window.

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

PRETTY_NAME="Debian GNU/Linux 12 (bookworm)"
NAME="Debian GNU/Linux"
VERSION_ID="12"
VERSION="12 (bookworm)"
VERSION_CODENAME=bookworm
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"

(5) Gnome Shell version:

43

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

8e176f14029a2c3bb54c52e1e7a5c697b9eb2171

(7) Where was Pop Shell installed from:

From source.

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

2x4k, Primary(Horizontal), Secondary(Vertical)

Dominant language
TypeScript
Stars
5.3k
Forks
318
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from pop-os/shell

All issues in pop-os/shell

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.