-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Reconfigure how auto-type behaves when the window title is blank #11597
Comments
Does your terminal have a changing window title? |
The window title appears to always be "Xfce4 Terminal" and when I open vim in a new functional tab, its title does not change by the time I leave vim and auto-type no longer works. Reminder: when auto-type stops working, the window prompt for the database unlock still appears when I use my Ctrl+Alt+A shortcut. |
I cannot replicate this at all. 2024-12-26_09-49-02.mp4 |
What additional information may I provide? |
Thanks for the quick turnaround by the way. |
So the facts I can tell from your report are:
So for the auto-type select dialog to not show up is a very peculiar problem. The fact that it seems to be related to post-vim running is even more peculiar. |
In my case there will always be multiple matches. Ever since an input box appeared to filter the list of auto-types I made most of mine match '*' because I got tired of tweaking matches on a regular basis when login web pages change. Another detail I didn't mention in my original report, this really applies to individual terminal tabs. Once I open a new tab I get auto-type working, but it remains defunct in tabs where it already broke. Is there a way to collect debug logs I could compare between pre-vim and post-vim auto-type attempts? |
This looks relevant: --- xprop-pre-vim.txt
+++ xprop-post-vim.txt
@@ -1 +1 @@
-_NET_WM_ICON_GEOMETRY(CARDINAL) = 750, 1080, 0, 0
+_NET_WM_ICON_GEOMETRY(CARDINAL) = 870, 1080, 0, 0
@@ -282,4 +282,4 @@
-WM_ICON_NAME(STRING) = "Terminal"
+WM_ICON_NAME(STRING) =
-_NET_WM_ICON_NAME(UTF8_STRING) = "Terminal"
+_NET_WM_ICON_NAME(UTF8_STRING) =
-WM_NAME(STRING) = "Terminal"
+WM_NAME(STRING) =
-_NET_WM_NAME(UTF8_STRING) = "Terminal"
+_NET_WM_NAME(UTF8_STRING) = Not idea why the geometry changed between |
We don't do debug logging (for better or worse). Having a window that cannot be targeted would also break the auto-type process between steps b and d above. The blank "WM_NAME" will cause auto-type to not function. keepassxc/src/autotype/AutoType.cpp Lines 445 to 448 in e76e9d4
|
Oh and I see it now. The title of the window was not "Xfce4 Terminal", this is the application name in the alt+tab window. If the active tab is defunct, only "Xfce4 Terminal" appears when I hover the window via alt+tab, but on a working terminal tab I see both "Xfce4 Terminal" and "Terminal". So now I need to understand why some ncurses applications clear the |
😉 I've been around the block a couple times. I am going to retitle this because we should issue some form of warning or at least show the select dialog with all entries visible during this situation. I think that code above is left over from before we had a really good select dialog. |
My workaround for the Xfce terminal is to change the setting "Dynamically-set title" to "Goes before initial title" to always have something in |
Have you searched for an existing issue?
Brief Summary
Auto-type works in a terminal until some state change happens to the terminal. In my case I can observe this problem with
vim
. It happens with other ncurses-type applications, but not all of them (for exampleless
is fine). If I open a new tab, I can perform auto-type with my global shortcut (Ctrl+Alt+A) just fine.If I open
vim
in my terminal, I can still perform auto-type, but once I return to my terminal (exit vim or send SIGSTOP with Ctrl+Z) auto-type is broken. The shortcut will open the password prompt window, but once the database is unlocked, the auto-type prompt never appears.This is as far as I have been able to narrow it down so far.
Steps to Reproduce
Expected Versus Actual Behavior
No response
KeePassXC Debug Information
Operating System
Linux
Linux Desktop Environment
XFCE
Linux Windowing System
X11
The text was updated successfully, but these errors were encountered: