Files
Recordly/electron
firtoz 68fe6a928b fix(tray): single-click opens window and brings it to front; Linux/Wayland focus workaround
- Add tray.on('click') to call focusOrCreateMainWindow() so left-click
  on the systray icon opens/focuses the app on all platforms (was
  previously only possible via right-click → Open).
- On Linux/Wayland, compositors often ignore focus() for security;
  Electron's tray does not yet handle ProvideXdgActivationToken like
  Qt apps (e.g. Telegram). Workaround: when the HUD exists but is
  not focused, destroy and recreate it so the new window receives
  focus (creation path works). Applied only for the HUD overlay, not
  the editor.
- Reorder: show() before restore(), then moveTop(), focus() for
  more reliable raise-on-restore.

Made-with: Cursor
2026-03-15 22:40:40 +00:00
..