Skip to content
This repository has been archived by the owner on Jun 20, 2021. It is now read-only.

Minimise does not work after application has exited #6

Closed
TheGuardianWolf opened this issue Jan 1, 2020 · 3 comments
Closed

Minimise does not work after application has exited #6

TheGuardianWolf opened this issue Jan 1, 2020 · 3 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@TheGuardianWolf
Copy link
Owner

TheGuardianWolf commented Jan 1, 2020

There seems to be a bug where clicking the thunderbird icon in the task bar does not do anything once it is maximised.

To reproduce:

  1. Open ThunderbirdTray
  2. Hide Thunderbird via minimise
  3. Exit ThunderbirdTray
  4. Restore by clicking the Thunderbird icon in task bar
  5. Click the icon in task bar again, it should minimise but it does not

If Thunderbird's "restore" button is clicked before clicking on the taskbar icon though, this issue is less severe, certain mouseclicks will trigger this issue but spam clicking works.

@TheGuardianWolf TheGuardianWolf added the bug Something isn't working label Jan 1, 2020
@TheGuardianWolf
Copy link
Owner Author

TheGuardianWolf commented Jan 1, 2020

The answer by craisin here has more hints about what is going on and a workaround

https://superuser.com/questions/1112744/window-in-focus-doesnt-minimize-when-i-click-on-its-icon-in-the-taskbar-window

It does seem like an explorer bug rather than some issue with my particular application, although my use case is triggering it.

@TheGuardianWolf TheGuardianWolf added the help wanted Extra attention is needed label Jan 1, 2020
@TheGuardianWolf TheGuardianWolf pinned this issue Jan 1, 2020
@TheGuardianWolf
Copy link
Owner Author

TheGuardianWolf commented Jan 1, 2020

An additional answer has explained more:

https://stackoverflow.com/questions/25807661/c-restoring-a-window-using-showwindow-disables-its-minimize-capability

To fix this issue, instead of showing Thunderbird in minimised mode if the application is hidden when exited, I am showing it in normal mode. There does not seem to be a real fix to this aside from developing a companion addon for Thunderbird, something I wished to avoid.

See aeedc75

@TheGuardianWolf
Copy link
Owner Author

No further ideas, closing for now

@TheGuardianWolf TheGuardianWolf unpinned this issue Feb 8, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant