Send frame callback for dnd icon surfaces
`org.gnome.gitlab.YaLTeR.Identity` is a good way to test animated dnd surfaces.
This commit is contained in:
parent
b823dd4247
commit
fde5b9aa91
1 changed files with 11 additions and 1 deletions
12
src/state.rs
12
src/state.rs
|
|
@ -12,7 +12,7 @@ use crate::{
|
||||||
shell::{grabs::SeatMoveGrabState, CosmicSurface, SeatExt, Shell},
|
shell::{grabs::SeatMoveGrabState, CosmicSurface, SeatExt, Shell},
|
||||||
utils::prelude::OutputExt,
|
utils::prelude::OutputExt,
|
||||||
wayland::{
|
wayland::{
|
||||||
handlers::screencopy::SessionHolder,
|
handlers::{data_device::get_dnd_icon, screencopy::SessionHolder},
|
||||||
protocols::{
|
protocols::{
|
||||||
a11y::A11yState,
|
a11y::A11yState,
|
||||||
atspi::AtspiState,
|
atspi::AtspiState,
|
||||||
|
|
@ -1048,6 +1048,16 @@ impl Common {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if let Some(icon) = get_dnd_icon(seat) {
|
||||||
|
send_frames_surface_tree(
|
||||||
|
&icon.surface,
|
||||||
|
output,
|
||||||
|
time,
|
||||||
|
Some(Duration::ZERO),
|
||||||
|
should_send,
|
||||||
|
)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
shell
|
shell
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue