sonsongithub / HomeConMenu

Menu Bar Extra to control HomeKit Devices
MIT License
47 stars 5 forks source link

Tiny box on desktop appears when I launch HomeConMenu #19

Open riverLethe9 opened 1 week ago

riverLethe9 commented 1 week ago

Hello, there is a small box on my desktop (image 1) that appears when I launch HomeConMenu, and disappears when I quit the app. Nothing happens when I click on it. When I click on my desktop, the tiny box flies upward as if it were a normal app window. Furthermore, when I move an ordinary app window (e.g., Safari) around, it bumps into the tiny box as if it were an app window (image 2). When I quit HomeConMenu, the box disappears.

I am currently running macOS 15.1.1 and HomeConMenu 4.0.4 (217). — Curious if anyone has insight into what might be going on.

Screenshot 2024-11-25 at 23 42 16 Screenshot 2024-11-25 at 23 44 44

sonsongithub commented 1 week ago

Thank you for reporting. But I can not find the small window on my Mac....

  1. Does that window always appear when you start HomeConMenu?
  2. Where on the screen does that window appear?

...Is anyone else experiencing the same issue?

riverLethe9 commented 1 day ago

Hi, when I restarted my computer, I did not see it, even though the app was open. So, it seems that the answer to your first question may be no. But it reappeared. It appears in the vertical centre of the screen about three quarters of the way up (see screenshot 1). Force-quitting the app then restarting it removes then recalls the box (see recording). Going into Exposé, the black square is present, and I just figured out that if I mouse over it just so, the name of the app appears (see screenshot 2)

I also tried installing it on my laptop and while the tiny black box was not there, whenever I enter Exposé, 'HomeConMenu' appears as a text string, and upon closer inspection of the screenshot, it appears that there's a circular artefact above the right edge of the text (see screenshot 3).

Screenshot 2024-12-02 at 21 31 04

Screenshot 2024-12-02 at 21 54 11

Screenshot 2024-12-02 at 09 44 12

https://github.com/user-attachments/assets/769d5f30-eb3d-450b-9cd8-a23b96cfca36

sonsongithub commented 1 day ago

Thank you for your excellent report. I think the bug you found is due to the architecture of my application. I guess that this problem is not easy to solve…... I'm sorry, but please wait.

If you are interested in coding an app using the HomeKit API, please read my speculation below. This small window is a view that is forcibly displayed by the Catalyst framework. My code tries to close it automatically, but there is a possibility that the view cannot always be closed.