Skip to content

Add map for webview_get_window()#53

Merged
geaz merged 1 commit into
webview:masterfrom
StarlexLtd:master
Oct 31, 2025
Merged

Add map for webview_get_window()#53
geaz merged 1 commit into
webview:masterfrom
StarlexLtd:master

Conversation

@cyysummer

Copy link
Copy Markdown
Contributor

I've tested using Win32 API to create menus with returned window handle.

@rthomasv3

Copy link
Copy Markdown
Contributor

I just created an issue for this (#54) and opened a PR, but I then I saw this one already existed.

These changes are basically the same as mine, so I'll go ahead and close mine.

I've tested the changes on Windows and Linux and everything appears to be working.

In Windows, the handle returned matches Process.MainWindowHandle, and in Linux where MainWindowHandle is always 0, the new binding is working great.

GetWindow(): 97212317951280

@geaz

geaz commented Oct 31, 2025

Copy link
Copy Markdown
Member

Thanks for your work and testing @cyysummer & @rthomasv3! Merged 👍

@geaz
geaz merged commit 9e0739e into webview:master Oct 31, 2025
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.

3 participants