[go: up one dir, main page]

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

On MacOS SysTray menu does not show when clicked on an active space in second monitor #5223

Open
2 tasks done
udelledo opened this issue Oct 24, 2024 · 2 comments
Open
2 tasks done
Labels
unverified A bug that has been reported but not verified

Comments

@udelledo
Copy link
udelledo commented Oct 24, 2024

Checklist

  • I have searched the issue tracker for open issues that relate to the same problem, before opening a new one.
  • This issue only relates to a single bug. I will open new issues for any other problems.

Describe the bug

The basic sample application found on the documentation when running on a MacOS shows the systray menu on when the systray icon is clicked in a Desktop window, it doesn't show anything when it's clicked with a space active

How to reproduce

  1. Run the sample systray application
  2. Get to a space on a second monitor (full window application)
  3. click on the systray icon
  4. The menu does not show

Screenshots

No response

Example code

package main

import (
	"fyne.io/fyne/v2"
	"fyne.io/fyne/v2/app"
	"fyne.io/fyne/v2/driver/desktop"
	"fyne.io/fyne/v2/widget"
)

func main() {
	a := app.New()
	w := a.NewWindow("SysTray")

	if desk, ok := a.(desktop.App); ok {
		m := fyne.NewMenu("MyApp",
			fyne.NewMenuItem("Show", func() {
				w.Show()
			}))
		desk.SetSystemTrayMenu(m)
	}

	w.SetContent(widget.NewLabel("Fyne System Tray"))
	w.SetCloseIntercept(func() {
		w.Hide()
	})
	w.ShowAndRun()
}

Fyne version

2.5.1

Go compiler version

1.23.2

Operating system and version

Mac OS 14.5

Additional Information

No response

@udelledo udelledo added the unverified A bug that has been reported but not verified label Oct 24, 2024
@udelledo udelledo changed the title On MacOS SysTray menu does not show when clicked on an active space On MacOS SysTray menu does not show when clicked on an active space in second monitor Oct 24, 2024
@andydotxyz
Copy link
Member

I cannot replicate this when the primary monitor is the fullscreen app - do you see that too?
I will go find another monitor to plug in.

@udelledo
Copy link
Author

Yes, I noticed that on the primary monitory it does not happen, but I also just noticed that the fyne app is not the only one that is showing this behavior. Cisco any connect is behaving the same, but Outlook or Oracle content are working correctly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
unverified A bug that has been reported but not verified
Projects
None yet
Development

No branches or pull requests

2 participants