keepassxreboot / keepassxc

KeePassXC is a cross-platform community-driven port of the Windows application “Keepass Password Safe”.
https://keepassxc.org/
Other
21.33k stars 1.47k forks source link

Inconsistent behaviour between minimize button and tray icon #10578

Open dgva opened 7 months ago

dgva commented 7 months ago

Overview

Steps to Reproduce

  1. Minimize window on the KDE window frame OR lock session/screen
  2. KPXC minimizes to tray icon, but doesn't always return when pressed, or even when pressing "Toggle window"
  3. "Quit" the application completely and start a new instance
  4. Minmize window by clicking on the tray icon
  5. Window behaves as expected, minimizing and maximizing normally

Expected Behavior

Minimizing the window on the KDE frame itself, or locking the session/screen and then, when coming back, pressing the tray icon, should always open the KPXC window.

Actual Behavior

Inconsistent behaviour, where the window opens maybe once each 10 times.

Context

It started after the big Plasma 6 update. Already did a clean reinstall of KPXC, issue remains.

KeePassXC - Version 2.7.7 Revision: 68e2dd8

Qt 5.15.13 Debugging mode is disabled.

Operating system: EndeavourOS CPU architecture: x86_64 Kernel: linux 6.8.4-arch1-1

Enabled extensions:

Cryptographic libraries:

Operating System: Linux Desktop Env: KDE (Plasma 6.0.3-1) Windowing System: X11

droidmonkey commented 7 months ago

It started after the big Plasma 6 update

Why do you think this is a keepassxc problem? We don't control window frame level actions. That is on Plasma or the respective desktop environment.

dgva commented 6 months ago

We don't control window frame level actions.

Well, it only happens with KeePassXC, and I haven't found any similar bugs on KDE bug tracker... but I'll leave the option to close this up to you, if you think this is not directly related or appropriate to this repo. I really can't provide any more info on this, to be honest, I'm sorry.

kastl-ars commented 5 months ago

I also noticed that clicking the tray icon does not always open up KeePassXC. Sometimes the third click works, sometimes the second one. Although it seems to work on some machines while on others it needs more clicks.

In my case different linux laptops, 3x openSUSE Tumbleweed or Kalpa, 1x NixOS, 1x Fedora Kinoite. All with Plasma6

maximoffua commented 1 week ago

On ArchLinux I have the same issue.

plasma-desktop 6.2.2 keepassxc 2.7.9

After the window is minimized to the task bar, it is not possible to activate it using the tray icon (no matter how many times I click on it). Only "Toggle window" works. Similar behavior is observed, when the window is opened, and I move to another virtual desktop. From the other desktop tray icon cannot control window. Even if I return to the desktop with KeePassXC window opened, clicking the tray icon doesn't hide/show the window, unless I click on it to activate first. After the window is focused, the tray icon can control it again.

This looks to me like Plasma changed API for window control because KDE apps work well. I have tested KDE Wallet Manager and Kleopatra, which also have tray icons. Their windows just hide and show from any desktop, with and without focus when clicking the tray icon. Telegram Desktop (Qt app) also has such issue. However, it is at least marked as "demanding attention" when I click the tray icon from the other desktop.