Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save inclement/3fab077b5df19152cf02ca538cf12795 to your computer and use it in GitHub Desktop.
Save inclement/3fab077b5df19152cf02ca538cf12795 to your computer and use it in GitHub Desktop.
diff --git a/river/XdgPopup.zig b/river/XdgPopup.zig
index 0f5b97d..381897a 100644
--- a/river/XdgPopup.zig
+++ b/river/XdgPopup.zig
@@ -91,6 +91,11 @@ fn handleDestroy(listener: *wl.Listener(*wlr.XdgSurface), wlr_xdg_surface: *wlr.
fn handleMap(listener: *wl.Listener(*wlr.XdgSurface), xdg_surface: *wlr.XdgSurface) void {
const self = @fieldParentPtr(Self, "map", listener);
+ var iterator = self.wlr_xdg_popup.base.surface.subsurfaces.iterator(.forward);
+ while (iterator.next()) |subsurface| {
+ handleNewSubsurface(&self.new_subsurface, subsurface);
+ }
+
self.wlr_xdg_popup.base.surface.events.commit.add(&self.commit);
self.parent.damageWholeOutput();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment