From 7745b146f583fb40bd4af2a40a0d597463254b2d Mon Sep 17 00:00:00 2001 From: amrbashir Date: Tue, 6 Feb 2024 03:50:29 +0200 Subject: [PATCH] license --- core/tauri-runtime-wry/src/undecorated_resizing.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/core/tauri-runtime-wry/src/undecorated_resizing.rs b/core/tauri-runtime-wry/src/undecorated_resizing.rs index f35c02c24..b9df4ea0c 100644 --- a/core/tauri-runtime-wry/src/undecorated_resizing.rs +++ b/core/tauri-runtime-wry/src/undecorated_resizing.rs @@ -1,3 +1,7 @@ +// Copyright 2019-2023 Tauri Programme within The Commons Conservancy +// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: MIT + #![cfg(any( windows, target_os = "linux", @@ -153,7 +157,7 @@ pub fn handle_request( .get(&window_id) .and_then(|w| w.inner.as_ref()) { - if !window.is_decorated() && window.is_resizable && !window.is_maximized() { + if !window.is_decorated() && window.is_resizable() && !window.is_maximized() { let (x, y) = args.split_once(',').unwrap(); let (x, y) = (x.parse().unwrap(), y.parse().unwrap()); hit_test(window.inner_size(), x, y, window.scale_factor()).change_cursor(&window);