mirror of
https://github.com/niri-wm/niri.git
synced 2026-06-23 02:05:33 +07:00
screenshot-ui: Animate opening
This commit is contained in:
+5
-1
@@ -1589,7 +1589,7 @@ impl Niri {
|
||||
let mods_with_finger_scroll_binds =
|
||||
mods_with_finger_scroll_binds(backend.mod_key(), &config_.binds);
|
||||
|
||||
let screenshot_ui = ScreenshotUi::new();
|
||||
let screenshot_ui = ScreenshotUi::new(config.clone());
|
||||
let config_error_notification = ConfigErrorNotification::new(config.clone());
|
||||
|
||||
let mut hotkey_overlay = HotkeyOverlay::new(config.clone(), backend.mod_key());
|
||||
@@ -2973,6 +2973,10 @@ impl Niri {
|
||||
state.unfinished_animations_remain |=
|
||||
self.config_error_notification.are_animations_ongoing();
|
||||
|
||||
self.screenshot_ui
|
||||
.advance_animations(target_presentation_time);
|
||||
state.unfinished_animations_remain |= self.screenshot_ui.are_animations_ongoing();
|
||||
|
||||
// Also keep redrawing if the current cursor is animated.
|
||||
state.unfinished_animations_remain |= self
|
||||
.cursor_manager
|
||||
|
||||
Reference in New Issue
Block a user