Skip to content

Improve tray icon interaction: show menu only on right click #405

Description

@SeanTong11

Summary

I noticed a tray interaction that feels a bit inconsistent with common desktop tray behavior, and I would like to check whether this UX direction makes sense before opening a PR.

I already have a small implementation locally, but I wanted to discuss the behavior first.

Current behavior

With the following settings:

  • Always on top: enabled
  • System tray: enabled
  • Close to tray: enabled
  • Minimize to tray: disabled

Steps:

  1. Click the window close button so the app hides to the tray.
  2. Click the tray icon to restore the window.
  3. Click the tray icon again to hide the window.

In this flow, the tray menu can appear after left-click interaction.

Expected behavior

I would expect:

  • Left click: toggle the main window visibility.
  • Right click: open the tray menu.

This matches the tray behavior I usually see in desktop apps, where the context menu is reserved for right click.

Proposed change

Set show_menu_on_left_click(false) on the tray icon builder, while keeping the existing left-click window toggle behavior.

The tray menu would still be available through right click.

Question

Would this interaction be acceptable for Pomotroid across supported platforms?

If yes, I can open a focused PR with the implementation and Windows manual testing notes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions