linuxmint / linuxmint/cinnamon

Hover on window border does not change focus

Open
#11,495 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

 * Cinnamon version 5.6.5
 * Fedora 37, 64 bit
Issue

When using the Sloppy or Mouse focus modes, a window does not receive the focus when the mouse is hovering over the decorations (title bar or border). The window only becomes focused when the mouse enters the actual body of the window.

In Mouse focus mode, the window border seems to act as a "neutral" area. A window neither gains nor loses focus while the mouse is in the title bar.

Windows with client-side decorations (e.g. Evince) are not affected.

Not sure if this is a bug or intended behavior. In the latter case, I'd like to turn this into a feature request.

Steps to reproduce
  • Change window focus mode to "Mouse"
  • Open some windows
  • Move the mouse over the title bar of a currently unfocused window (1)
    • The window does not receive focus.
  • Move the mouse into the window's body (2)
    • The window is focused.
  • Move the mouse back to the title bar (3)
    • The window is still focused.
  • Move the mouse to the desktop (4)
    • The window loses focus.
Expected behaviour

Windows should receive the focus as soon as the mouse touches their screen area, including borders (step (1) above).

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

Start by reproducing the behavior in Cinnamon 5.6.5 using Mouse and Sloppy focus modes, including title bars and borders of non-client-side-decorated windows. Trace Cinnamon's window-focus handling for decoration areas; done means hovering any part of a window, including its borders, applies the expected focus behavior without changing client-side decoration behavior.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.