Пример #1
0
// Ungrab undoes Grab. It will handle all combinations of modifiers found
// in xevent.IgnoreMods.
func Ungrab(xu *xgbutil.XUtil, win xproto.Window, mods uint16,
	button xproto.Button) {

	for _, m := range xevent.IgnoreMods {
		xproto.UngrabButtonChecked(xu.Conn(), byte(button), win, mods|m).Check()
	}
}
Пример #2
0
func MouseUngrabChecked(c *xgb.Conn, win xproto.Window, mods uint16, button xproto.Button) {
	for _, m := range IgnoreMods {
		xproto.UngrabButtonChecked(c, byte(button), win, mods|m).Check()
	}
}