OrangeDrangon / android-messages-desktop

Android Messages as a Cross-platform Desktop App
Other
331 stars 28 forks source link

Minimize to Tray by Clicking on Tray Icon #412

Closed innesst closed 1 month ago

innesst commented 1 year ago

Is your feature request related to a problem? Please describe. I often restore the window from tray, check on messages, see that I don't need to respond to anything, and then minimize back to tray. Restoring from tray is a simple one click on the tray icon. But then to minimize back to the tray, I need to either move mouse to the close icon of the window, or right click the tray icon and select show/hide.

Describe the solution you'd like Lazy, I know, but in the above scenario, since I am not interacting with the window - only viewing it - I don't need to move my mouse at all from the tray icon. So it would be great if a left click on the tray icon (when the window was restored and in focus) would minimized it to tray. Currently such a click does nothing if it is in focus (but does bring to focus if it is in the background). The desired behavior is exactly what happens when you left click on the an active program in the taskbar (if behind another window, it brings to focus. If in focus, it minimizes).

Describe alternatives you've considered N/A

Additional context 7+ Taskbar Tweaker performs in the desired way (mostly - it minimizes to tray on a single left click whether in focus or not - though that way of functioning if good too).

OrangeDrangon commented 1 year ago

This change should be scoped to updating the onClick handler for the tray icon.