gnunn1 / tilix

A tiling terminal emulator for Linux using GTK+ 3
https://gnunn1.github.io/tilix-web
Mozilla Public License 2.0
5.38k stars 293 forks source link

No Focus #2108

Open iomari opened 2 years ago

iomari commented 2 years ago

Greetings, One annoying issue. Whenever I drop down tilix, the terminal doesn't have focus. I always have to click on the terminal before typing. Is there a setting for this? Is it a bug or am I doing something wrong? I'm on kubuntu 22.04.

tilix --version
Versions Tilix version: 1.9.4 VTE version: 0.68 GTK Version: 3.24.33

reuschling commented 10 months ago

I have this problem too, when I toggle tilix with 'tilix --quake' it becomes no focus if another application has the focus yet. I would like that tilix graps the focus in this case. I also tried with 'tilix --quake --focus-window' for the keyboard shortcut, but sadly it makes no difference.

tilix --version Versions Tilix version: 1.9.5 VTE version: 0.74 GTK Version: 3.24.38

reuschling commented 10 months ago

I have found a workaround:

This sends 'Alt+Esc' to the shell which gives the current Tilix window the focus. Since xvkbd sadly sends the event to the current focus window instead if Tilix is not visible , I send 'Alt+Esc' which should not have any impact in most cases.

I tried to give focus with python xlib, xdotool, wmctrl and devilspie, but without success. xvkbd has to be installed of course.

Hope this helps a bit!