screenshot-ui: Add a help panel

This commit is contained in:
Ivan Molodetskikh
2024-07-08 10:54:21 +04:00
parent 887ca971ab
commit 236f96e676
2 changed files with 134 additions and 6 deletions
+6 -1
View File
@@ -1240,7 +1240,12 @@ impl State {
get_monotonic_time().as_millis() as u32,
);
self.niri.screenshot_ui.open(screenshots, default_output);
self.backend.with_primary_renderer(|renderer| {
self.niri
.screenshot_ui
.open(renderer, screenshots, default_output)
});
self.niri
.cursor_manager
.set_cursor_image(CursorImageStatus::Named(CursorIcon::Crosshair));