gyunaev / birdtray

new mail system tray notification icon for Thunderbird
GNU General Public License v3.0
782 stars 59 forks source link

Birdtray does not hide thunderbird after opening it directly #550

Open Paprikar opened 1 year ago

Paprikar commented 1 year ago

OS: Ubuntu 20.04 64bit Linux Desktop Manager: GNOME Mutter 3.36.9 Birdtray version: 1.10.0 (also 1.8 from apt) Thunderbird version: 102.10.0 (64-bit) Birdtray origin: From source Qt version: 5.12.8

Context Thunderbird was already running previously via birdtray. Birdtray is configured to hide thunderbird if it has been minimized. Thunderbird was hidden via birdtray.

Description When I open thunderbird via dock, it opens an already running application instance, which is fine. However, after that birdtray does not notice it and does not update the hidden/unhidden state of thunderbird. Because of this, thunderbird can no longer be hidden without interacting with birdtray. That is, birdtray does not react to the hidden/unhidden state of thunderbird. To fix this, you have to spam the birdtray icon so that it eventually converges with thunderbird's state and starts working correctly. This sort of happens right after thunderbird is finally hidden.

Expected behavior After thunderbird has been opened directly, birdtray hides thunderbird after it is minimized.

To Reproduce

  1. Start birdtray (and thunderbird through it) and configure it to hide thunderbird after it is minimized.
  2. Hide thunderbird through birdtray.
  3. Launch thunderbird directly.
  4. Attempt to hide thunderbird via its minimization.
  5. Birdtray did not hide thunderbird.