https://bugs.kde.org/show_bug.cgi?id=488060

--- Comment #3 from f...@fedy.cz ---
It is my understanding that Wayland applications have no mechanism to switch
focus themselves. That being said, kwin probably should have the ability to
define if certain application/window should get the focus initially and I
personally find it quite an essential feature. The question of whether it
should still be called "Focus stealing prevention" or (for example) "Initial
focus" is valid, but regardless it would be really nice to have some mechanism
in place.

I can see at least two possible levels for this setting (not sure how well they
map to the current "Focus stealing prevention" levels):
a) New window never gets focus
b) New windows only gets focus if no other window has one
, but would be perfectly happy if just the b) option was implemented.
Behaviour when window is spawned in a different Workspace/Activity should also
be considered.

Here are a few use cases:
1) "Cautious / security conscious user" - no new windows should get focus
initially, except for a few well defined ones (like a terminal app or KRunner)
2) "Long startup time apps" - define a rule that a specific application that
has a very long startup time should not get the initial focus (breaks workflow)
3) Rules for specific "remotely controlled" GUI apps - For example media player
controlled from the terminal script.

And a few other related notes (just spit balling here):
- It would be also nice to have the ability to define a global rule in a form
of: "Don't get initial focus if startup time is longer than X"
- Probably a pipe dream, but being able to distinguish between application
launches initiated directly by user (terminal/KRunner/start menu) VS ones
initiated by other applications could be very useful too.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to