From 9b073b2350d00dfdb32a4983a102c4bde843c92c Mon Sep 17 00:00:00 2001 From: Ivan Molodetskikh Date: Thu, 10 Aug 2023 09:58:26 +0400 Subject: Redraw on demand rather than continuously --- src/handlers/compositor.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/handlers') diff --git a/src/handlers/compositor.rs b/src/handlers/compositor.rs index b5f6291d..b2666f7f 100644 --- a/src/handlers/compositor.rs +++ b/src/handlers/compositor.rs @@ -41,6 +41,8 @@ impl CompositorHandler for Niri { xdg_shell::handle_commit(&self.space, surface); resize_grab::handle_commit(&mut self.space, surface); + + self.queue_redraw(); } } -- cgit