From fde5b9aa9150982ccdf4c16ffa57165e6d60d52c Mon Sep 17 00:00:00 2001 From: Ian Douglas Scott Date: Fri, 6 Jun 2025 13:35:58 -0700 Subject: [PATCH] Send `frame` callback for dnd icon surfaces `org.gnome.gitlab.YaLTeR.Identity` is a good way to test animated dnd surfaces. --- src/state.rs | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/state.rs b/src/state.rs index 1a7de6fc..2b000da3 100644 --- a/src/state.rs +++ b/src/state.rs @@ -12,7 +12,7 @@ use crate::{ shell::{grabs::SeatMoveGrabState, CosmicSurface, SeatExt, Shell}, utils::prelude::OutputExt, wayland::{ - handlers::screencopy::SessionHolder, + handlers::{data_device::get_dnd_icon, screencopy::SessionHolder}, protocols::{ a11y::A11yState, 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