From 571ac6168960ce434f6f8ed5172f06378028ef48 Mon Sep 17 00:00:00 2001 From: Trevin Miller Date: Wed, 4 Mar 2026 18:25:16 -0600 Subject: [PATCH] fix: invisible window blocking clicks on the desktop --- windows/webview.cc | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/windows/webview.cc b/windows/webview.cc index 28719a4..22d110f 100644 --- a/windows/webview.cc +++ b/windows/webview.cc @@ -429,11 +429,12 @@ void Webview::SetSurfaceSize(size_t width, size_t height, float scale_factor) { auto scaled_width = width * scale_factor; auto scaled_height = height * scale_factor; + const LONG kBoundsOffset = -32000; RECT bounds; - bounds.left = 0; - bounds.top = 0; - bounds.right = static_cast(scaled_width); - bounds.bottom = static_cast(scaled_height); + bounds.left = kBoundsOffset; + bounds.top = kBoundsOffset; + bounds.right = kBoundsOffset + static_cast(scaled_width); + bounds.bottom = kBoundsOffset + static_cast(scaled_height); surface_->put_Size({scaled_width, scaled_height}); webview_controller_->put_RasterizationScale(scale_factor);