示例#1
0
// Ungrab undoes Grab. It will handle all combinations od modifiers found
// in xevent.IgnoreMods.
func Ungrab(xu *xgbutil.XUtil, win xproto.Window,
	mods uint16, key xproto.Keycode) {

	for _, m := range xevent.IgnoreMods {
		xproto.UngrabKeyChecked(xu.Conn(), key, win, mods|m).Check()
	}
}
示例#2
0
文件: inputs.go 项目: wSCP/scpwm-old
func UngrabKeyChecked(c *xgb.Conn, win xproto.Window, mods uint16, key xproto.Keycode) {
	for _, m := range IgnoreMods {
		xproto.UngrabKeyChecked(c, key, win, mods|m).Check()
	}
}