GNOME Bugzilla – Bug 761227
Gnome terminal does not get focus
Last modified: 2021-07-05 14:25:45 UTC
In Wayland session, when switching using Alt+Tab to terminal, the terminal does not get focus, I cannot start to type nor the subsequent click by mouse into terminal area will get the focus. This is very annoying behavior, since there is no obvious way how to get the focus. Switching back and forth between windows typically helps after some time but .... $ rpm -q gnome-terminal gnome-terminal-3.18.2-1.fc24.x86_64
The strange thing is, that when it is supposed to be focused, the first use of Alt+Tab highlights the same terminal instance, but it won't get focus again.
Also interestingly, the mouse double click allow to select some text, but does not give the window the focus properly.
Looks like the focus bug, bug 677329.
(In reply to Christian Persch from comment #3) Well, but the bug is reported against X and I can't remember I would ever struggle with it in X session. On contrary, in Wayland session, I fight this issue almost constantly. Is there any way how I could get more reliable reproducer? Do you suspect any specific component which would trigger this?
Do you have "tab-policy: always"? See bug 761800.
(In reply to Egmont Koblinger from comment #5) > Do you have "tab-policy: always"? See bug 761800. Not sure what exactly do you mean by this, but probably not, since new terminal window is opened without tab.
This is very likely mis-filed and not a g-t or vte bug; try moving it to somewhere like gtk+ or gnome-shell.
(In reply to Vít Ondruch from comment #0) > In Wayland session, when switching using Alt+Tab to terminal, the terminal > does not get focus, I cannot start to type nor the subsequent click by mouse > into terminal area will get the focus. This seems to work as expected with GNOME 3.18.x and Fedora 23 without any gnome-shell extensions installed. I wonder if something regressed since then. Do you have any extensions to tweak the Alt+Tab behaviour? eg., the AlternateTab extension that offers a window based switcher instead of the application based one?
(In reply to Debarshi Ray from comment #8) > Do you have any extensions to tweak the Alt+Tab behaviour? eg., the > AlternateTab extension that offers a window based switcher instead of the > application based one? I am using plain Gnome, no extensions at all.
Actually, I reported that that Alt+Tab is an issue, but the same issue happens when I try to switch to the terminal by mouse click.
GNOME is going to shut down bugzilla.gnome.org in favor of gitlab.gnome.org. As part of that, we are mass-closing older open tickets in bugzilla.gnome.org which have not seen updates for a longer time (resources are unfortunately quite limited so not every ticket can get handled). If you can still reproduce the situation described in this ticket in a recent and supported software version, then please follow https://wiki.gnome.org/GettingInTouch/BugReportingGuidelines and create a new ticket at https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/ Thank you for your understanding and your help.