fyne-io / systray

a cross platfrom Go library to place an icon and menu in the notification area
Apache License 2.0
245 stars 49 forks source link

Left click on Linux does nothing. #84

Open zquestz opened 3 weeks ago

zquestz commented 3 weeks ago

Seems that only right click is mapped for Linux. When I left click it does nothing...

I am using the latest Cinnamon on Arch Linux.

Was curious if this was by design, or if there is a way we can get both Left and Right click to bring up the menu! Or at the very least have a way to map a custom action to Left click so we can get it to do something.

I even tested having a window up (generally I have no windows), then clicking the systray icon to see if it would at least foreground the app, but in my experience it does absolutely nothing. =\

zquestz commented 2 weeks ago

I implemented a solution in my fork, just to have it documented.

https://github.com/zquestz/systray/commit/3a26a41ae0858d04dcbc8bd2959a7af218f9f03d

Basically it just allows you to map a custom function to Activate.