How do I make a newly opened file the active window on GNOME 3?

When I double click a file in Nautilus (e.g. a LibreOffice document) it will open a new window in the background, but Nautilus remains the active window.

Is there a way to open a file and have the new window automatically become the active window?

I'm running Ubuntu 18.04.


Solution 1:

Use a GNOME shell extensions called NoAnnoyance. This extension would put the newly launched window in focus straight away.

Read this to learn about installing and managing GNOME extensions: How do I install and manage GNOME Shell extensions?