(arr *[]*Window, first xproto.Window, last xproto.Window)
| 1390 | } |
| 1391 | |
| 1392 | func 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 | |
| 1402 | func remove(arr *[]*Window, id xproto.Window) { |
| 1403 | if len(*arr) == 1 { |