github.com/jmigpin/editor@v1.6.0/driver/xdriver/dragndrop/status.go (about) 1 package dragndrop 2 3 import "github.com/BurntSushi/xgb/xproto" 4 5 type StatusEvent struct { 6 Window xproto.Window 7 Flags uint32 8 Action xproto.Atom 9 } 10 11 func (st *StatusEvent) Data32() []uint32 { 12 return []uint32{ 13 uint32(st.Window), 14 st.Flags, 15 0, // x,y 16 0, // w,h 17 uint32(st.Action), // accepted action 18 } 19 } 20 21 const ( 22 StatusEventAcceptFlag = 1 << 0 23 StatusEventSendPositionsFlag = 1 << 1 // ask to keep sending positions 24 )