MCPcopy Create free account
hub / github.com/BobdaProgrammer/doWM / remove

Function remove

wm/window_manager.go:1402–1412  ·  view source on GitHub ↗
(arr *[]*Window, id xproto.Window)

Source from the content-addressed store, hash-verified

1400}
1401
1402func remove(arr *[]*Window, id xproto.Window) {
1403 if len(*arr) == 1 {
1404 *arr = []*Window{}
1405 }
1406 for index := range *arr {
1407 if (*arr)[index].id == id {
1408 *arr = append((*arr)[:index], (*arr)[index+1:]...)
1409 return
1410 }
1411 }
1412}
1413
1414func runCommand(cmdStr string) {
1415 parser := shellwords.NewParser()

Callers 3

RunMethod · 0.85
OnUnmapNotifyMethod · 0.85
UnFrameMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected