NativePHP / laravel

Laravel wrapper for the NativePHP framework
https://nativephp.com
MIT License
3.23k stars 167 forks source link

`MenuBar::onlyShowContextMenu()` flickers on left mouse click #89

Open marcreichel opened 1 year ago

marcreichel commented 1 year ago

What happened?

When creating a MenuBar application with the ->onlyShowContextMenu option, the context menu flickers when clicking the icon initially (focusing away from another app for example).

After that the left click works as expected.

How to reproduce the bug

  1. Create a MenuBar application with the ->onlyShowContextMenu() option.
  2. Run the app with php artisan serve.
  3. Left-click the menu bar icon.

Package Version

0.2.0

PHP Version

8.1.17

Laravel Version

10.16.1

Node Version

18.16.0

Which operating systems does with happen with?

macOS

Notes

No response

simonhamp commented 1 year ago

Confirmed, there's definitely something glitchy there. It seems that it tries to focus the app, even when there are no windows. We'll do some digging

simonhamp commented 7 months ago

I suspect this is a bug with the menubar package we're using. I still need to do more digging