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

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

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
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

1 participant