There is a gnome shell extension called Steal my Focus which disables this behavior but it doesn't seem to be supported by the developer anymore. You can make it work though by forking the git repository, editing the metadata.json
file and adding your gnome-shell version in there. Here is mine:
{
"_generated": "Generated by SweetTooth, do not edit",
"description": "Let windows steal focus. Removes the annoying 'Window is ready' notification and focus window immediately",
"name": "Steal My Focus",
"original-authors": [
"kagesenshi.87@gmail.com"
],
"shell-version": [
"3.2","3.5.2","3.6","3.6.2","3.7","3.8","3.10","3.10.1"
],
"url": "https://github.com/kagesenshi/gnome-shell-extension-stealmyfocus",
"uuid": "steal-my-focus@kagesenshi.org",
"version": 1
}
I have this problem whenever I click on a link on any application other than a browser. For example, in a mail application, I click on a link, and instead of a browser appearing, I get this notification. I can't understand why it would be desirable to have a notification instead of the actual browser open... – kapace – 2014-11-06T19:09:44.593
Well the fact that when you disable notifications, those still appears annoys me to the highest possible point. – Depado – 2014-11-07T14:10:56.183
related – bummi – 2017-11-07T15:03:36.257