henrywoo / kazam

Kazam - Linux Desktop Screen Recorder and Broadcaster
GNU General Public License v3.0
136 stars 15 forks source link

Fix: StatusIcon menu position. #33

Closed ylecuyer closed 9 months ago

ylecuyer commented 9 months ago

Hello, I tried to fix the status icon menu which is displayed far away from the tray icon when we click on it. I found in the logs that the signature of the position icon wasn't correct (that's probably why it was falling back to (0, 0) top left of the screen) and add the missing params as I could find them in the gtk doc https://docs.gtk.org/gtk3/callback.MenuPositionFunc.html

Before:

https://github.com/henrywoo/kazam/assets/1866809/1144cd70-f1b5-4f9c-a6a6-ec5b7dd9bb07

After:

https://github.com/henrywoo/kazam/assets/1866809/d6bf1556-2138-4d4f-865a-43d944ca1874