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

Method workspace_from_window

src/workspaces.rs:294–296  ·  view source on GitHub ↗
(&mut self, window: &Window)

Source from the content-addressed store, hash-verified

292 }
293
294 pub fn workspace_from_window(&mut self, window: &Window) -> Option<&mut Workspace> {
295 self.workspaces.iter_mut().find(|w| w.contains_window(window))
296 }
297
298 pub fn activate(&mut self, id: u8) {
299 self.current = id;

Callers 2

toplevel_destroyedMethod · 0.80

Calls 1

contains_windowMethod · 0.80

Tested by

no test coverage detected