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

--- Comment #3 from Tiernan Hubble <thubble+kdeb...@thubble.ca> ---
This seems to be partially related to bug 424795, but I don't think the
upstream fix there will be sufficient.

It seems that there's no way on Wayland for an application to request focus for
itself when another application is focused ("stealing" focus). xdg-activation
only supports the currently-active application switching between its own
windows, or voluntarily relinquishing focus to another application (and both
applications, or the frameworks they're based on, need to be specifically coded
to support relinquishing or receiving activation).

As far as I can tell by Google searching, there are no plans for Wayland to
allow an application to "steal" focus from another application. Something like
this would have to be added to kwin, and I imagine this would be a lot of work
- probably a brand new protocol extension. And I'm not confident the Wayland
team would even want something like this (they specifically designed
xdg-activation to prevent focus stealing). So - I don't think there's any
reasonable chance of getting this functionality to work on Wayland in the
foreseeable future.

I don't mind quickly tapping F12 twice, which accomplishes the same thing.
Although, this brings up a question about Wayland in general: a currently
running application can create and display a NEW window any time it wants, and
this will steal focus (dependent on the compositor, but kwin obviously supports
it) - so I'm not sure how useful it is to prevent an existing window from
stealing focus.

Since this won't work on Wayland, I'm thinking it's best to disable the feature
there. I'm not sure the best way to do that though, as it might be kind of
tricky with settings, or a confusing UI with the checkbox, due to being able to
switch between X11 and Wayland sessions.

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

Reply via email to