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

Function swapWindowsId

wm/window_manager.go:1392–1400  ·  view source on GitHub ↗
(arr *[]*Window, first xproto.Window, last xproto.Window)

Source from the content-addressed store, hash-verified

1390}
1391
1392func swapWindowsId(arr *[]*Window, first xproto.Window, last xproto.Window){
1393 var res1 int
1394 var res2 int
1395 for i, win := range (*arr){
1396 if win.id == first{ res1 = i
1397 }else if win.id == last{ res2 =i }
1398 }
1399 swapWindows(arr, res1, res2)
1400}
1401
1402func remove(arr *[]*Window, id xproto.Window) {
1403 if len(*arr) == 1 {

Callers 1

RunMethod · 0.85

Calls 1

swapWindowsFunction · 0.85

Tested by

no test coverage detected