Skip to content

Fix tray menu not closing / not updating#2515

Open
FUFSoB wants to merge 2 commits intonoctalia-dev:mainfrom
FUFSoB:fix/tray-close
Open

Fix tray menu not closing / not updating#2515
FUFSoB wants to merge 2 commits intonoctalia-dev:mainfrom
FUFSoB:fix/tray-close

Conversation

@FUFSoB
Copy link
Copy Markdown
Contributor

@FUFSoB FUFSoB commented Apr 21, 2026

Pull Request

Motivation

This PR aims to fix two bugs with tray menus:

  • They are not closing properly after making a click on item in the menu. The focus remains on the closed layer instead of going to windows, forcing to make an extra click to return back to normal.
  • They are not updating changed text properly. For example, after enabling some option in the tray menu and then reopening that menu, it says it's still disabled, even though in the program itself it's actually enabled as expected.

Type of Change

Mark the relevant option with an "x".

  • Bug fix
  • New feature
  • Breaking change
  • Refactoring

Related Issue

Testing

Did test with my own project with a tray icon, these changes make it work as expected.

Also tested with Telegram Desktop's "Enable/Disable Notifications", now works as expected.

  • Tested on niri
  • Tested on Hyprland
  • Tested on sway
  • Tested with different bar positions and density settings
  • Tested at different interface scaling values
  • Tested with multiple monitors (if applicable)

Screenshots / Videos

None

Checklist

  • Code follows project style guidelines
  • Self-reviewed my code
  • No new warnings or errors
  • Documentation or comments updated (if relevant)

Additional Notes

None

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant