From 156f54435a85dec423ebbd7a2816350c60c1feac Mon Sep 17 00:00:00 2001 From: Inkeliz Date: Thu, 10 Jun 2021 20:46:45 +0100 Subject: [PATCH] fix: set ForegroundWindow when SetVisibility --- gowebview.go | 3 +-- gowebview_android.jar | Bin 10529 -> 10529 bytes gowebview_windows.go | 1 + 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gowebview.go b/gowebview.go index db7c7bf..a3b3b58 100644 --- a/gowebview.go +++ b/gowebview.go @@ -36,8 +36,7 @@ type WebView interface { SetSize(point *Point, hint Hint) // Navigate navigates webview to the given URL. URL may be a data URI, i.e. - // "data:text/text,...". It is often ok not to url-encode it - // properly, webview will re-encode it for you. + // "data:text/text,...". SetURL(url string) // SetVisibility updates the WindowMode, such as minimized or maximized diff --git a/gowebview_android.jar b/gowebview_android.jar index 07cec54e567e857828f2df29c1d57e19e6d97110..f9a45c6d30775fdde713369da35804e09f448a30 100644 GIT binary patch delta 218 zcmZ1&v@nP_z?+#xgn@&DgP~7#(nMY>W+1iE%YqR^PhQP#xp^Psb!Ir{BI|Xq%;weX zW=wEVS*~ydX9LeugyxHUIvgNno5XKG^xc+N!2%N4+$Ot~4Qzm&iUnApQUz-17S$-Q hgrFLP&V$mYp|plNM7$MBKT^*EtM}K)1=IUAk^mUxOFIAn delta 218 zcmZ1&v@nP_z?+#xgn@&DgTaz@!bDyxW+1iE%YqR^PhQP#xp^Psb!Ir{BI|Xq%;weX zW=wEVS*~ydX9LeugyxHUIvgNno5XKG^xc+N!2%N4+$Ot~4Qzm&iUnApQUz-17S$-Q hgrFLP&V$mYp|plNM7$MBKT^*EtM}K)1=IUAk^m-UK>+{& diff --git a/gowebview_windows.go b/gowebview_windows.go index 9309b80..2da3bc0 100644 --- a/gowebview_windows.go +++ b/gowebview_windows.go @@ -256,6 +256,7 @@ func (w *webview) SetVisibility(v Visibility) { w32.ShowWindow(w.view.window, w32.SW_MINIMIZE) default: w32.ShowWindow(w.view.window, w32.SW_SHOWDEFAULT) + w32.SetForegroundWindow(w.view.window) } }