Skip to content

Commit fde5b9a

Browse files
ids1024Drakulix
authored andcommitted
Send frame callback for dnd icon surfaces
`org.gnome.gitlab.YaLTeR.Identity` is a good way to test animated dnd surfaces.
1 parent b823dd4 commit fde5b9a

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

src/state.rs

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ use crate::{
1212
shell::{grabs::SeatMoveGrabState, CosmicSurface, SeatExt, Shell},
1313
utils::prelude::OutputExt,
1414
wayland::{
15-
handlers::screencopy::SessionHolder,
15+
handlers::{data_device::get_dnd_icon, screencopy::SessionHolder},
1616
protocols::{
1717
a11y::A11yState,
1818
atspi::AtspiState,
@@ -1048,6 +1048,16 @@ impl Common {
10481048
}
10491049
}
10501050
}
1051+
1052+
if let Some(icon) = get_dnd_icon(seat) {
1053+
send_frames_surface_tree(
1054+
&icon.surface,
1055+
output,
1056+
time,
1057+
Some(Duration::ZERO),
1058+
should_send,
1059+
)
1060+
}
10511061
}
10521062

10531063
shell

0 commit comments

Comments
 (0)