cursor: Render Cursor over DnD-icons

This commit is contained in:
Victoria Brekenfeld 2022-08-05 16:28:05 +02:00
parent a8fa068f2a
commit 500a8c51b1
3 changed files with 50 additions and 54 deletions

View file

@ -10,6 +10,7 @@ use smithay::{
},
seat::Seat,
},
utils::IsAlive
};
use std::cell::RefCell;
@ -22,6 +23,7 @@ pub fn get_dnd_icon(seat: &Seat<State>) -> Option<WlSurface> {
userdata
.get::<DnDIcon>()
.and_then(|x| x.surface.borrow().clone())
.filter(IsAlive::alive)
}
impl ClientDndGrabHandler for State {