linuxmint / linuxmint/cinnamon

a newly raised window doesn't get the focus, when a always-on-top windows has the focus

Open
#4,386 9 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

Hi.

Normally, when a new window is raised, e.g. when pressing a keyboard shortcut to open the terminal/calculator/etc. it get's the focus, which makes sense as the user explicitly wanted to start it.

But when at the time the new window is raised another window which is marked to be always on top has the focus, the later will keep that,... which is quite unintuitive.

This seems to happen generally, i.e. not just when windows are raised from a keyboard shortcut, but also e.g. when doing this in a terminal:
$ sleep 5; xman
and then clicking to the always-on-top window.

I don't think that this has to do anything with "focus stealing prevention", as it really only happens when the window is marked always-on-top.

Cheers,
Chris.

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

Reproduce the issue with sleep 5; xman, then click an always-on-top window before xman opens. Trace Cinnamon's handling of focus for newly raised windows when another always-on-top window has focus. Done means the newly raised window receives focus in this case, both for the terminal example and for windows opened by keyboard shortcuts.

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
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.