コード例 #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
ファイル: inputs.go プロジェクト: wSCP/scpwm-old
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()
	}
}