hluk/CopyQ

Double-clicking tray icon opens then closes CopyQ

Open

#2.252 geöffnet am 5. Feb. 2023

Auf GitHub ansehen
 (3 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)C++ (419 Forks)batch import
Windowsbughelp wanted

Repository-Metriken

Stars
 (7.372 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 17h 35m) (13 gemergte PRs in 30 T)

Beschreibung

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:

  1. Double-click the CopyQ tray icon.

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.

Contributor Guide