Open redactedscribe opened 1 year ago
There is already a short interval that the app waits for the main window (or any other window belonging to the app) to gain focus. If the option Close When Unfocused is enabled and the window still does not have focus after the interval, the main window is closed.
The interval is 500 milliseconds be default. You can change it by opening action dialog F5 (or console) and running copyq close_on_unfocus_delay_ms 1000
.
Does the main window get keyboard focus after double-clicking on the tray icon?
copyq close_on_unfocus_delay_ms 1000
:
Sorry, my mistake, it should be: copyq config close_on_unfocus_delay_ms 1000
Describe the bug Double-clicking CopyQ's tray icon opens then closes CopyQ after a short delay. This is due to the Close When Unfocused option being enabled.
To Reproduce Steps to reproduce the behavior:
Expected behavior Regardless of single or double-click, or Close When Unfocused state, open the CopyQ window, and stay open. Essentially, if the tray is triggered in quick succession (a double-click), ignore Close When Unfocused logic until a short grace period has passed.
Version, OS and Environment CopyQ 6.4.0 Windows 11 Pro 10.0.22621
Additional context On Windows, some tray icons require only a single-click, others a double-click, to open a program's window, but in all cases that I'm aware of, a program doesn't open then close if a double-click is sent rather than a single-click. Muscle memory shouldn't need changing to accommodate this in my opinion, nor require losing Close When Unfocused functionality.