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

Method close_window

src/state.rs:395–400  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

393 }
394
395 pub fn close_window(&mut self) {
396 let ptr = self.seat.get_pointer().unwrap();
397 if let Some((window, _)) = self.workspaces.current().window_under(ptr.current_location()) {
398 window.toplevel().send_close()
399 }
400 }
401
402 pub fn switch_to_workspace(&mut self, id: u8) {
403 self.workspaces.activate(id);

Callers

nothing calls this directly

Calls 2

window_underMethod · 0.80
currentMethod · 0.80

Tested by

no test coverage detected