11

This problem started after upgrade from Ubuntu 22.10 to 23.04.

For example, open gnome-terminal (Terminal) and usb-creator-gtk (Startup Disk Creator). Partially overlap these two windows and allow the title bars of both windows to be visible (and clickable).

Click on the title bar of Terminal; it will be focused. Now, click on the title bar (the topmost area saying "Make Startup Disk") of Startup Disk Creator; it will not be focused and Terminal will remain focused.

The only seemingly workaround is to click and drag a bit the title bar of Startup Disk Creator or click somewhere inside the window of Startup Disk Creator.

The same problem is present in LibreOffice applications, Thunderbird and Firefox with title bar enabled.

This is a rather annoying bug not present in the previous versions of Ubuntu.

Note that this problem is not present on all Ubuntu applications and it may be related to the version of GTK used in that application.

How to correct this wrong behavior?

FedKad
  • 13,420

2 Answers2

6

This is a known bug: Single click on title bar does not transfer focus to target window (server side decorations in Xorg sessions)

As you may see in the above bug report, the fix is released and you should get it when GNOME gets updated to version 44.1. On my Fedora 38 system, GNOME 44.1 was released a few days ago and I can confirm that the issue is fixed there.

0

On another site I saw this fix...

gsettings set org.gnome.desktop.wm.preferences focus-mode 'click'

Run that at the command line. It seems to have fixed it for me. Even without restarting; but I'd suggest a clean reboot after making the change.

FYI, I am using Gnome 46 on Ubuntu 24.04.2 LTS. It is fully updated and I was still experiencing the annoying bug. The worst part is when you click on a web browser to enter a password, and end up sending it to a chatroom.

enter image description here