cursor: Render Cursor over DnD-icons
This commit is contained in:
parent
a8fa068f2a
commit
500a8c51b1
3 changed files with 50 additions and 54 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue