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 tooltip does not show when full window app is active #5282

Closed
2 tasks done
udelledo opened this issue Nov 21, 2024 · 2 comments
Closed
2 tasks done
Labels
not an issue This doesn't seem right

Comments

@udelledo
Copy link

udelledo commented Nov 21, 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

I have configured my fyne app to show a tooltip using the systray.SetTooltip("tooltip") method.
I can correctly see the tooltip when I hover on the sytray icon when the systray bar is shown on a Desktop window (on both monitors in my dual monitor setup), however when I hover on the icon in a space (full windowed app), the tooltip is not shown

How to reproduce

  1. Start the fyne app
  2. while a desktop pane is active hover on the icon: the tooltip is shown
  3. maximize an app
  4. while on the scene with the maximized app hover on the app icon: the tooltip is not shown

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"
        "fyne.io/systray"
)

func main() {
	a := app.New()
	w := a.NewWindow("SysTray")
        a.Lifecycle().SetOnStarted(func() {
	      systray.SetTooltip("test tooltip")
        })
	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.7.1

Additional Information

No response

@udelledo udelledo added the unverified A bug that has been reported but not verified label Nov 21, 2024
@andydotxyz
Copy link
Member

I have checked this out and you're right.
However all the other apps I have installed have the same restriction (Dropbox, Docker etc).

I think this may be a "feature" of macOS...

@andydotxyz andydotxyz added not an issue This doesn't seem right and removed unverified A bug that has been reported but not verified labels Nov 28, 2024
@andydotxyz andydotxyz closed this as not planned Won't fix, can't repro, duplicate, stale Nov 28, 2024
@udelledo
Copy link
Author

udelledo commented Nov 28, 2024

Jetbrains Toolbox doesn't have this behavior, and shows the tooltip even on full screen, so I don't think it's a restriction on MacOs side, but definitely it looks like they expect something different to be set, because also in my case, many other apps do not show the tooltip.
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
not an issue This doesn't seem right
Projects
None yet
Development

No branches or pull requests

2 participants