From ae8efc4818bea81ae8a09b24013d64985b9a59a5 Mon Sep 17 00:00:00 2001 From: Lucas Nogueira Date: Tue, 6 Feb 2024 08:28:54 -0300 Subject: [PATCH] fix windows --- .../src/undecorated_resizing.rs | 11 +++++++---- .../window/autogenerated/reference.md | 16 ++++++++++++++++ 2 files changed, 23 insertions(+), 4 deletions(-) diff --git a/core/tauri-runtime-wry/src/undecorated_resizing.rs b/core/tauri-runtime-wry/src/undecorated_resizing.rs index 50e8ed03d..58d40ac1d 100644 --- a/core/tauri-runtime-wry/src/undecorated_resizing.rs +++ b/core/tauri-runtime-wry/src/undecorated_resizing.rs @@ -44,7 +44,10 @@ enum HitTestResult { #[cfg(windows)] mod windows { - use super::HitTestResult; + use super::{ + HitTestResult, BORDERLESS_RESIZE_INSET, BOTTOM, BOTTOMLEFT, BOTTOMRIGHT, CLIENT, LEFT, RIGHT, + TOP, TOPLEFT, TOPRIGHT, + }; use tao::{ dpi::PhysicalSize, @@ -130,9 +133,9 @@ mod windows { } // Returns whether handled or not - pub fn handle_request( - context: super::Context, - window_id: super::WindowId, + pub fn handle_request( + context: crate::Context, + window_id: crate::WindowId, request: &str, ) -> bool { if let Some(args) = request.strip_prefix(MESSAGE_MOUSEMOVE) { diff --git a/core/tauri/permissions/window/autogenerated/reference.md b/core/tauri/permissions/window/autogenerated/reference.md index 4f369caa4..b4a1341c4 100644 --- a/core/tauri/permissions/window/autogenerated/reference.md +++ b/core/tauri/permissions/window/autogenerated/reference.md @@ -72,6 +72,22 @@ Enables the inner_size command without any pre-configured scope. Denies the inner_size command without any pre-configured scope. +## allow-internal-on-mousedown + +Enables the internal_on_mousedown command without any pre-configured scope. + +## deny-internal-on-mousedown + +Denies the internal_on_mousedown command without any pre-configured scope. + +## allow-internal-on-mousemove + +Enables the internal_on_mousemove command without any pre-configured scope. + +## deny-internal-on-mousemove + +Denies the internal_on_mousemove command without any pre-configured scope. + ## allow-internal-toggle-maximize Enables the internal_toggle_maximize command without any pre-configured scope.