diff options
| author | Ivan Molodetskikh <yalterz@gmail.com> | 2023-08-16 07:08:57 +0400 |
|---|---|---|
| committer | Ivan Molodetskikh <yalterz@gmail.com> | 2023-08-16 07:08:57 +0400 |
| commit | 085cd147a9d00df78eee25bc7da91cdb1a2d29c6 (patch) | |
| tree | 6b12da7080b6f51d5f6f503bbab348f9a378f540 /src | |
| parent | 20b75f5f4031ae2a1c6f902313d023cadecd4ab4 (diff) | |
| download | niri-085cd147a9d00df78eee25bc7da91cdb1a2d29c6.tar.gz niri-085cd147a9d00df78eee25bc7da91cdb1a2d29c6.tar.bz2 niri-085cd147a9d00df78eee25bc7da91cdb1a2d29c6.zip | |
Send frame callbacks to cursor and dnd icon
Diffstat (limited to 'src')
| -rw-r--r-- | src/niri.rs | 13 |
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()) + }); + } } } |
