From 5248e534995dc21279cfd14651c994cd02353452 Mon Sep 17 00:00:00 2001 From: Ivan Molodetskikh Date: Tue, 7 May 2024 22:06:43 +0400 Subject: Implement do-screen-transition action --- src/input.rs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/input.rs') diff --git a/src/input.rs b/src/input.rs index 63a22450..6a75960a 100644 --- a/src/input.rs +++ b/src/input.rs @@ -378,6 +378,11 @@ impl State { Action::Spawn(command) => { spawn(command); } + Action::DoScreenTransition(delay_ms) => { + self.backend.with_primary_renderer(|renderer| { + self.niri.do_screen_transition(renderer, delay_ms); + }); + } Action::ScreenshotScreen => { let active = self.niri.layout.active_output().cloned(); if let Some(active) = active { -- cgit