Open vsaw opened 1 month ago
OK, so it turns out ElectronJS does not support mouse-enter
events on Linux for Tray icons.
The workaround of opening the chart preview on click is also not possible because I cannot determine the location of the Tray icon on screen and therefore don't know where to show the preview. Things I tried so far:
click
event bounds
and position
seems to be broken, as it always returns 0
for bounds and position coordinates.screen.getCursorScreenPoint()
is broken as well on Linux. See https://github.com/electron/electron/issues/42519Therefore, I don't know how to fix this at the moment and probably cannot until upstream Electron is fixed.
Reported by @rochelmeyer (@thorsten4future@climatejustice.social)
Icon itself seems to be working and changes color depending on grid usage.