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 · 4 comments
Open
2 tasks done
Labels
bug Something isn't working

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

@udelledo
Copy link
Author

udelledo commented Nov 30, 2024

@andydotxyz I also just realized something that might be helpful finding out the issue.
When running the example of the fyne.io/systray repo. the Tooltip is shown also when the app is in full screen

fyne.io systray screenshot on full-screen app

image

my fyne app on full-screen app (no tooltip shown)

image

I can't paste a screenshot of the tooltip on a desktop window, because the tooltip follows the mouse pointer even when it's in screenshot mode, and this doesn't happen on the fyne.io/systray example.

From what I could see the issue should be in the difference between the loop provided by systray.RunWithExternalLoop(), and the nativeLoop used in systray.Run()

@andydotxyz
Copy link
Member

From what I could see the issue should be in the difference between the loop provided by systray.RunWithExternalLoop(), and the nativeLoop used in systray.Run()

Wow - great insight but this will be a very difficult find!

@andydotxyz andydotxyz reopened this Dec 3, 2024
@andydotxyz andydotxyz added bug Something isn't working and removed not an issue This doesn't seem right labels Dec 3, 2024
@andydotxyz andydotxyz added this to the E fixes (v2.5.x) milestone Dec 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants