Skip to content
This repository
tree: 38be40dcc1
Fetching contributors…

Cannot retrieve contributors at this time

file 24 lines (20 sloc) 0.403 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
package stack

import (
"github.com/BurntSushi/xgb/xproto"

"github.com/BurntSushi/xgbutil/xwindow"
)

type Client interface {
Id() xproto.Window
Win() *xwindow.Window
TopWin() *xwindow.Window
Layer() int
Transient(client Client) bool
}

func clientIndex(needle Client, haystack []Client) int {
for i, client := range haystack {
if client.Id() == needle.Id() {
return i
}
}
return -1
}
Something went wrong with that request. Please try again.