We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 6e0049d + 82a9c47 commit ebfdfe4Copy full SHA for ebfdfe4
wrywebview/src/main/rust/lib.rs
@@ -998,6 +998,19 @@ pub fn close_dev_tools(id: u64) -> Result<(), WebViewError> {
998
999
fn destroy_webview_inner(id: u64) -> Result<(), WebViewError> {
1000
wry_log!("[wrywebview] destroy_webview id={}", id);
1001
+
1002
+ #[cfg(target_os = "linux")]
1003
+ {
1004
+ gdk::error_trap_push();
1005
+ let res = unregister(id);
1006
+ while gtk::events_pending() {
1007
+ gtk::main_iteration_do(false);
1008
+ }
1009
+ let _ = gdk::error_trap_pop();
1010
+ res
1011
1012
1013
+ #[cfg(not(target_os = "linux"))]
1014
unregister(id)
1015
}
1016
0 commit comments