-
Notifications
You must be signed in to change notification settings - Fork 260
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove hack to ensure that focus is set. #716
Conversation
set_focus() should do the trick according to the docs, so let's just use that, and not go to extraordinary measures.
I lost focus on start after this. I'm on X11, Gnome, Debian 12. I'll try to fix it. Removing the line |
Oo, can you send in a PR with that and I'll merge it? If not, it's a simple change I can do if you want. |
Days like this I love GTK. This function does the exact opposite of what the function says it does. 😛 |
I think the "restore focus" feature isn't working altogether. If that's so, then I believe that instead of focusing the Edit: I think it wasn't working with the "awful workaround" code either. |
@Vulcalien do you have a config that can reproduce the problem, or is it now fixed with the final change? |
Here there are two windows, each with one terminal. For some reason, having a notebook influences how the focus is chosen. In this case, it works as it should. What I think it's happening, is that the window that is written as last in the config file is the one that grabs the focus, every time. Edit: very likely the behavior differs greatly between desktop environments. I'm on Gnome 43, X11. |
set_focus() should do the trick according to the docs, so let's just use that, and not go to extraordinary measures.
fixes #714 hopefully