I’m currently looking for a way to prevent windows from stealing focus.
I’ve already set my focus-new-window setting to strict, but when I launch applications from terminal, my terminal loses focus.
Mouse behaviour is set to focus on click.
Always on top isn’t a decent workaround, because I’d have to constantly toggle the setting to get the desired behaviour.
I simply want to keep focus on the window I’m using and choose when I switch to a different window. I didn’t find a useful extension, since most seem to enable focus of newly launched applications while disabling notifications.
Trying to gather some insight into the window focus behaviour on Gnome.
These links seemed to illuminate aspect of the issue and provide some workarounds, but I doubt that I’ll be able to find a solution:
It seems like Compiz enforces the strict setting (where windows don’t steal focus and aren’t raised) better than Mutter does. I’ve been seeing it pop up as a solution to this problem a couple of times, but as the linked discussion indicates that it’s no longer in the official repositories, I’m not too keen on using it if it breaks every time Manjaro gets an update.
NoAnnoyance v2 seems to do the opposite of what I’m trying to achieve, unless I’ve misunderstood its functionality.
I am starting to appreciate the complexity of the problem, since I actually want certain applications to lose focus and switch to the new window when launching an application.
Terminal should not lose focus and new windows should not be raised when launching an application through terminal.
Steam should switch to the new window when launching a game.
Currently when a new window is created, it is raised and gets focus. I can turn the notifications off I guess, since they serve no purpose at the moment.