-
Notifications
You must be signed in to change notification settings - Fork 1
/
notify_map.go
34 lines (30 loc) · 1.25 KB
/
notify_map.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
// Copyright (c) 2018, Mark "Happy-Ferret" Bauermeister
//
// This software may be modified and distributed under the terms
// of the BSD license. See the LICENSE file for details.
package focus
import "github.com/BurntSushi/xgb/xproto"
var (
// A map from mode constants to human readable strings.
// For the deets:
// http://tronche.com/gui/x/xlib/events/input-focus/normal-and-grabbed.html
Modes = map[byte]string{
xproto.NotifyModeNormal: "NotifyNormal",
xproto.NotifyModeGrab: "NotifyGrab",
xproto.NotifyModeUngrab: "NotifyUngrab",
xproto.NotifyModeWhileGrabbed: "NotifyWhileGrabbed",
}
// A map from detail constants to human readable strings.
// For the deets:
// http://tronche.com/gui/x/xlib/events/input-focus/normal-and-grabbed.html
Details = map[byte]string{
xproto.NotifyDetailAncestor: "NotifyAncestor",
xproto.NotifyDetailVirtual: "NotifyVirtual",
xproto.NotifyDetailInferior: "NotifyInferior",
xproto.NotifyDetailNonlinear: "NotifyNonlinear",
xproto.NotifyDetailNonlinearVirtual: "NotifyNonlinearVirtual",
xproto.NotifyDetailPointer: "NotifyPointer",
xproto.NotifyDetailPointerRoot: "NotifyPointerRoot",
xproto.NotifyDetailNone: "NotifyNone",
}
)