aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Molodetskikh <yalterz@gmail.com>2023-08-16 07:08:57 +0400
committerIvan Molodetskikh <yalterz@gmail.com>2023-08-16 07:08:57 +0400
commit085cd147a9d00df78eee25bc7da91cdb1a2d29c6 (patch)
tree6b12da7080b6f51d5f6f503bbab348f9a378f540
parent20b75f5f4031ae2a1c6f902313d023cadecd4ab4 (diff)
downloadniri-085cd147a9d00df78eee25bc7da91cdb1a2d29c6.tar.gz
niri-085cd147a9d00df78eee25bc7da91cdb1a2d29c6.tar.bz2
niri-085cd147a9d00df78eee25bc7da91cdb1a2d29c6.zip
Send frame callbacks to cursor and dnd icon
-rw-r--r--src/niri.rs13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/niri.rs b/src/niri.rs
index 738ce28d..03d275ff 100644
--- a/src/niri.rs
+++ b/src/niri.rs
@@ -10,6 +10,7 @@ use smithay::backend::renderer::element::texture::{TextureBuffer, TextureRenderE
use smithay::backend::renderer::element::{render_elements, AsRenderElements};
use smithay::backend::renderer::gles::{GlesRenderer, GlesTexture};
use smithay::backend::renderer::{ImportAll, Renderer};
+use smithay::desktop::utils::send_frames_surface_tree;
use smithay::desktop::{
layer_map_for_output, LayerSurface, PopupManager, Space, Window, WindowSurfaceType,
};
@@ -471,6 +472,18 @@ impl Niri {
Some(output.clone())
});
}
+
+ if let Some(surface) = &self.dnd_icon {
+ send_frames_surface_tree(surface, output, frame_callback_time, None, |_, _| {
+ Some(output.clone())
+ });
+ }
+
+ if let CursorImageStatus::Surface(surface) = &self.cursor_image {
+ send_frames_surface_tree(surface, output, frame_callback_time, None, |_, _| {
+ Some(output.clone())
+ });
+ }
}
}