14 lines
455 B
Go
14 lines
455 B
Go
//go:build windows && (amd64 || arm64)
|
|||
|
|
|
||
|
|
package e2e
|
||
|
|
|
||
|
|
import (
|
||
|
|
"github.com/egoist/mygo"
|
||
|
|
"github.com/egoist/mygo/internal/windows"
|
||
|
|
"github.com/egoist/mygo/transfer"
|
||
|
|
)
|
||
|
|
|
||
|
|
func dropNativeData(w *mygo.Window, x, y float64, d transfer.Data, ops transfer.Operation) (operation transfer.Operation, dropped, supported bool) {
|
||
|
|
mygo.RunOnMain(func() { operation, dropped = windows.TestDropData(w.NativeHandle(), x, y, d, ops) })
|
||
|
|
return operation, dropped, true
|
||
|
|
}
|