From 0add05dde70df3c6d70362913aa007fac4c31f91 Mon Sep 17 00:00:00 2001 From: Ivan Molodetskikh Date: Tue, 11 Aug 2026 14:39:08 +0300 Subject: [PATCH] Queue redraw on popup subsurface commit --- src/handlers/compositor.rs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/handlers/compositor.rs b/src/handlers/compositor.rs index f9bd5af9..aba1509e 100644 --- a/src/handlers/compositor.rs +++ b/src/handlers/compositor.rs @@ -368,6 +368,9 @@ impl CompositorHandler for State { } // This is a commit of a non-toplevel root. + + // This might be a popup. + self.popups_handle_commit(surface); } // This is a commit of a non-root or a non-toplevel root. @@ -387,9 +390,8 @@ impl CompositorHandler for State { return; } - // This might be a popup. - self.popups_handle_commit(surface); - if let Some(popup) = self.niri.popups.find_popup(surface) { + // This might be a popup unsync subsurface. + if let Some(popup) = self.niri.popups.find_popup(&root_surface) { if let Some(output) = self.output_for_popup(&popup) { self.niri.queue_redraw(&output.clone()); }