Skip to content

[Feature Request] Option to prevent focus stealing #793

@Line-Noise

Description

@Line-Noise

Describe the problem/motivation

Some applications think they're more important than anything else and regularly steal the keyboard focus (I'm looking at you, Zoom!). This is annoying if I'm typing into one window (especially password fields!) and the keyboard focus is stolen by another app and I end up typing into that app instead! I have Focus Follows Mouse turned on so it could be that the apps stealing focus are simply moving the mouse over them.

Describe the solution you'd like

If possible, it would be great if there was an option that could be turned on that keeps focus locked on the currently focused window unless the user moves the mouse or uses hotkeys to switch focus to another window. Gnome in Linux has a "prevent focus stealing" option. I'm looking for something like that! Applications shouldn't be allowed to take control of my mouse and move it somewhere else (that's the window manager's job!) and they shouldn't be able to take keyboard focus when I'm typing into a different window.

Alternatives considered

Focus stealing seems to be a common problem in Windows but most solutions suggest using a tool that allows you to keep an application on top so that windows underneath it can't steal focus. I don't think that solution works in a tiling window manager.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    📬 Needs triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions