From 73ff0e2c1c8758f11596e8011e2fec1adb599ca6 Mon Sep 17 00:00:00 2001 From: Victoria Brekenfeld Date: Thu, 17 Jul 2025 16:17:18 +0200 Subject: [PATCH] floating/resize: Don't panic if something else cancelled the resize --- src/shell/layout/floating/grabs/resize.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/shell/layout/floating/grabs/resize.rs b/src/shell/layout/floating/grabs/resize.rs index 80356c5c..6308ada8 100644 --- a/src/shell/layout/floating/grabs/resize.rs +++ b/src/shell/layout/floating/grabs/resize.rs @@ -31,6 +31,7 @@ use smithay::{ output::Output, utils::{IsAlive, Logical, Point, Rectangle, Serial, Size}, }; +use tracing::debug; /// Information about the resize operation. #[derive(Debug, Clone, Copy, Eq, PartialEq)] @@ -582,7 +583,7 @@ impl ResizeSurfaceGrab { if let Some(ResizeState::Resizing(resize_data)) = *resize_state { *resize_state = Some(ResizeState::WaitingForCommit(resize_data)); } else { - panic!("invalid resize state: {:?}", resize_state); + debug!("unexpected resize state: {:?}", resize_state); } } }