Skip to content

Add onBeforeFirstShow (Linux), and Windows tray icon and balloons - #15

Merged
3vcloud merged 2 commits into
mainfrom
before-first-show
Nov 16, 2026
Merged

3vcloud merged 2 commits into
mainfrom
before-first-show

Conversation

@3vcloud

@3vcloud 3vcloud commented Nov 16, 2026

Copy link
Copy Markdown
Member

Two changes from the LiteMail work.

onBeforeFirstShow (Linux). A new virtual hook, called once for each native window just before it is first shown, once its page is ready. The host can set the window's position and size there, so the window never shows at the place the desktop gives it. Windows does not call the hook yet.

Notification-area tray icon and balloons (Windows). A hidden message window on the UI thread owns the tray icon and receives its clicks. showTrayBalloon can be called from any thread: the request is sent to that window, so it runs on the UI thread and the caller waits for the answer. The icon is put back when Explorer restarts.

Built against the current main. The Linux build was checked with LiteMail. The Windows code has not been compiled or run here.

🤖 Generated with Claude Code

The host can set a window's position and size there, so it does not show at the place
the desktop gives it. Linux calls it once per native window, when its page is ready and
just before the first show. Windows does not call it yet.
A hidden message window on the UI thread owns the tray icon and receives its clicks. Balloon requests
can come from any thread: they are sent to that window, so they run on the UI thread, and the caller
waits for the answer. The icon is removed when Explorer restarts and the taskbar broadcasts it.
@3vcloud
3vcloud merged commit b4b56f1 into main Nov 16, 2026
2 checks passed
@3vcloud
3vcloud deleted the before-first-show branch November 19, 2026 07:53
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