Since upgrading to Ubuntu 24.04 LTS, I've noticed that when I open applications from the left-side dock (the Activities/launcher bar), or when I choose "Open in Terminal" from the file manager (Nautilus), the new windows often appear in the background. The focus stays with the previous application, so I have to manually switch to the new window.
This is unexpected and is breaking my workflow, as newly opened windows should come to the foreground and receive focus.
Steps to replicate:
- Open, for example, Firefox
- Click on the dock Files. If this is the first Nautilus window open, it will show up in the foreground. But if there is already one Nautilus window open, clicking on
New Windowwill launch a new Nautilus window... in the background!
Alternative steps to replicate:
- Open a Nautilus window
- Right click Open in Terminal — this will launch the new terminal ... in the background!
edit
The answer on this post Gnome New Windows not focused automatically, to use gsettings set org.gnome.desktop.wm.preferences focus-new-windows 'smart' helped for the New window part, but unfortunately not for the Open in Terminal part, which is still opened in the background?
sudo dmesg -w. Maybe this will give you some hints to investigate further. Sadly this are the only tips I can give to you without access to your syslog or corresponding window-manager(wm)-logs. – ActionHOSchT Aug 06 '25 at 12:02