linuxmint / linuxmint/cinnamon

Super Shift to open pinned app does not give focus to it and opens new window on wrong display

Open
#13,075 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

BUG
Dominant language
JavaScript
Stars
5.6k
Forks
915
Avg merge
5d 22h
Merged PRs (30d)
3

Description

Distribution

Mint 21.3

Package version

Cinnamon 6.0.4

Graphics hardware in use

CometLake-S GT2 (UHD Graphics 630)

Frequency

Quite often

Bug description

This bug is quite specific and hard to describe, but it's objective enough to be reproducible and, especially, VERY annoying when it does happen. I'll try to explain with words and there's also a video showing it in action.

The bug happens when an app is launched with Super + Shift + number (1-9) (the shortcut that opens a new window of a pinned app, even if it already has an open window). The launched app opens a window on the incorrect display and, worse, does not receive focus (this is the biggest problem). Because of that, it's quite common for me to end up doing wrong actions on the wrong window: closing the wrong tab, start composing a random email or even accidentally deleting something. This can be seen near the end of the attached video.

What seems to happen is that shortcut Super + Shift + Left/Right (move window no another display) doesn't correctly set the new window position. It thinks it's still on the display that it was before. Then, if another window is opened with Super + Shift + number, the new window goes to wrong display and, for some apps (like Firefox), don't receive focus. The focus remains on the window that it was before, either for the same or different app.

The bug sometimes also occur if the window is moved to another display not via keyboard but via Cinnamon panel. I could not reproduce this on the video.

The bug does not occur if new window is clicked, moved or resized before Super + Shift + number is pressed. Some interactions, especially using mouse, will tell Cinnamon to remember the new window position correctly.

Please see video below.

https://github.com/user-attachments/assets/c1527417-7bd7-43e7-bfee-44bdce7ff249

Steps to reproduce
  1. pin an app on position 1 (firefox is a good option)
  2. open it with super 1
  3. move its window to next display with super right
  4. try to open a new window of it with super shift 1
  5. new window appears on old display and without focus
Expected behavior

a new window of app 1 should be displayed on the new display and with focus

Additional information

I can add any other details or make a new video if it will help. The problem arise on the interaction with Firefox, but I think it'd be easier fixed on Cinnamon. Also, other apps also appear on wrong display, not only Firefox.

Contributor guide

No contributing guide indexed for this repository

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.

Research direction

No files or tests are named. Reproduce the five listed steps with a pinned app moved using Super+Right, then trace the shortcut handling for window placement and focus. Done means the new window opens on the moved-to display and receives focus, including when the window was moved with the keyboard.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.