Make use of new DndGrabHandler::cancelled()

This commit is contained in:
Ivan Molodetskikh
2026-04-20 20:42:15 +03:00
parent cfe059c303
commit e9c182a13c
3 changed files with 7 additions and 8 deletions
+7 -1
View File
@@ -384,10 +384,16 @@ impl DndGrabHandler for State {
}
}
}
fn cancelled(&mut self, _seat: Seat<Self>, _location: Point<f64, Logical>) {
trace!("dnd cancelled");
self.niri.on_maybe_dnd_ended();
}
}
impl crate::niri::Niri {
pub fn on_maybe_dnd_ended(&mut self) {
fn on_maybe_dnd_ended(&mut self) {
self.layout.dnd_end();
self.dnd_icon = None;
// FIXME: more granular