MCPcopy Create free account
hub / github.com/StrataWM/strata / commit

Method commit

src/handlers/compositor.rs:85–100  ·  view source on GitHub ↗
(&mut self, surface: &WlSurface)

Source from the content-addressed store, hash-verified

83 }
84
85 fn commit(&mut self, surface: &WlSurface) {
86 on_commit_buffer_handler::<Self>(surface);
87 if !is_sync_subsurface(surface) {
88 let mut root = surface.clone();
89 while let Some(parent) = get_parent(&root) {
90 root = parent;
91 }
92 if let Some(window) =
93 self.workspaces.all_windows().find(|w| w.toplevel().wl_surface() == &root)
94 {
95 window.on_commit();
96 }
97 };
98 self.popup_manager.commit(surface);
99 handle_commit(&self.workspaces, surface, &self.popup_manager);
100 }
101}
102
103delegate_compositor!(StrataComp);

Callers

nothing calls this directly

Calls 3

handle_commitFunction · 0.85
all_windowsMethod · 0.80
wl_surfaceMethod · 0.80

Tested by

no test coverage detected