Closed Bug 2047459 Opened 1 month ago Closed 25 days ago

Add context menu to the Windows tray icon

Categories

(Thunderbird :: OS Integration, enhancement)

enhancement

Tracking

(Not tracked)

RESOLVED FIXED
154 Branch

People

(Reporter: lachcim, Assigned: lachcim)

References

()

Details

Attachments

(1 file)

This came up while working on bug 2044250 (add "close to tray" instead of "minimize to tray").

When close to tray is enabled, the user is no longer able to quit Thunderbird by clicking the close button in the top right corner. In this situation, most users would try to right click the tray icon and look for an option to quit there.

We must add a context menu to the tray icon on Windows. The menu must offer an option to quit Thunderbird.

  1. Move business logic out of IconWindowProc and into helper functions
  2. Upgrade NOTIFYICONDATAW to version 4 in order to receive WM_CONTEXTMENU
  3. Add sIconMenu, a static menu object initialized together with the icon window object
  4. Add HandleIconContextMenu, a helper that displays and handles the context menu
  5. Alter the system-tray-menu-quit message to make it accessible from C++
Assignee: nobody → alt
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true

Pushed by benc@thunderbird.net:
https://hg.mozilla.org/comm-central/rev/6e87059cedb6
Add context menu to the Windows tray icon. r=aleca,darktrojan

Status: ASSIGNED → RESOLVED
Closed: 25 days ago
Resolution: --- → FIXED
Target Milestone: --- → 154 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: