Skip to content

No way to get native window handle pointer #54

@rthomasv3

Description

@rthomasv3

Currently the webview_get_window binding is not implemented.

On Windows this is no big deal - you can just use Process.GetCurrentProcess().MainWindowHandle, but this won't work on other platforms (always returns 0).

Getting the native window handle is required for implementing platform-specific features in downstream applications, such as enabling spell checking on Linux via WebKit2GTK APIs.

This change shouldn't require new build of the native libs, just a small change to add the binding.

Proposed changes:

  1. Add webview_get_window() in Bindings.cs
  2. Add public GetWindow() method to Webview.cs that returns the native window handle

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions