Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose clicks on the systray icon. #188

Open
tommi-hack opened this issue Dec 23, 2020 · 0 comments
Open

Expose clicks on the systray icon. #188

tommi-hack opened this issue Dec 23, 2020 · 0 comments

Comments

@tommi-hack
Copy link

tommi-hack commented Dec 23, 2020

I want to use systray icon without menu. Instead, I would like to get some notification about the click on systray icon.
Especially good would be if click returned x, y coordinates of the potential menu.

Featre request:

  1. Make it possible to pass in channel that would receive event on systray icon clicks.
  2. make the channel to return menu location

Theoretically it could be something like this (in meta code):
iconClicks := systray.GetSystrayClicks() // it will return: chan struct{x: int, y: int}

Specifically I am building app with "fyne.io/fyne/" and want fyne app window open after clicking on the systray icon. And the window should be aligned to the systray icon. Similar to Dropbox app.

There are several similar requests made but with a bit different details:

#175
#121

And one PR for Windows only:
#160

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant