Skip to content

Commit

Permalink
Merge branch 'dev' into refactor/migrate-to-objc2
Browse files Browse the repository at this point in the history
  • Loading branch information
pewsheen committed Jul 16, 2024
2 parents ab9804b + 03cdf93 commit 5f55c39
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changes/handle-webkit2gtk-close-signal.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"wry": patch
---

Handle `webkit2gtk` close signal (when `window.close` is called from js)
3 changes: 3 additions & 0 deletions src/webkitgtk/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -395,6 +395,9 @@ impl InnerWebView {
web_context: &mut WebContext,
attributes: &mut WebViewAttributes,
) {
// window.close()
webview.connect_close(move |webview| unsafe { webview.destroy() });

// Synthetic mouse events
synthetic_mouse_events::setup(webview);

Expand Down

0 comments on commit 5f55c39

Please sign in to comment.