Repository navigation
Add onBeforeFirstShow (Linux), and Windows tray icon and balloons - #15
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.
showTrayBallooncan 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