floating/resize: Don't panic if something else cancelled the resize
This commit is contained in:
parent
0ac6145af2
commit
73ff0e2c1c
1 changed files with 2 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue