forge
Explore
Log in

Don't you dare go Hollow

Send frame callbacks to cursor and dnd icon

Browse files at this commit

085cd147a9d00df78eee25bc7da91cdb1a2d29c6Ivan MolodetskikhParent: 20b75f5
src/niri.rsmodified+13 -0
@@ -10,6 +10,7 @@ use smithay::backend::renderer::element::texture::{TextureBuffer, TextureRenderE
1010 use smithay::backend::renderer::element::{render_elements, AsRenderElements};
1111 use smithay::backend::renderer::gles::{GlesRenderer, GlesTexture};
1212 use smithay::backend::renderer::{ImportAll, Renderer};
13+use smithay::desktop::utils::send_frames_surface_tree;
1314 use smithay::desktop::{
1415 layer_map_for_output, LayerSurface, PopupManager, Space, Window, WindowSurfaceType,
1516 };
@@ -471,6 +472,18 @@ impl Niri {
471472 Some(output.clone())
472473 });
473474 }
475+
476+ if let Some(surface) = &self.dnd_icon {
477+ send_frames_surface_tree(surface, output, frame_callback_time, None, |_, _| {
478+ Some(output.clone())
479+ });
480+ }
481+
482+ if let CursorImageStatus::Surface(surface) = &self.cursor_image {
483+ send_frames_surface_tree(surface, output, frame_callback_time, None, |_, _| {
484+ Some(output.clone())
485+ });
486+ }
474487 }
475488 }
476489