element-desktop icon indicating copy to clipboard operation
element-desktop copied to clipboard

Clicking tray icon should activate Riot window

Open RandScullard opened this issue 6 years ago • 1 comments

Description

When Riot is open but not the active application window, left-clicking the tray icon hides the Riot window. It should activate it (bring it to the foreground). Only if Riot is already the active window should left-clicking the tray icon hide Riot.

Steps to reproduce

  • Make sure the Riot window is open, but not the active window.
  • Click the Riot tray icon.

The Riot window disappears, and its taskbar button disappears. I expect it to be activated (come to the foreground).

Log: not sent

Version information

  • Platform: desktop
  • OS: Windows
  • Version: 1.0.1

RandScullard avatar Mar 02 '19 22:03 RandScullard

This does not seem possible given the Electron API set without breaking existing functionality. When clicking the tray icon the window loses focus before the click handler fires, so the case of showing the window always occurs.

Testing other chromium based apps, namely Discord and Spotify, they simply don't let you minimize the window on left clicking.

(Note: all my testing was done on Windows 10, the behaviour may not be consistent across platforms)

t3chguy avatar Mar 18 '19 23:03 t3chguy