Пример #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
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()
	}
}