Made the clipboard API a bit better

This should work better with the X clipboard system better when I
eventually make use of that.
This commit is contained in:
2023-01-30 00:54:06 -05:00
parent 44b9a1e717
commit 2c55824920
4 changed files with 13 additions and 19 deletions

View File

@@ -48,7 +48,7 @@ func Copy (data Data) {
// Paste returns the data currently in the clipboard. This method may
// return nil.
func Paste () (data Data) {
func Paste (accept []Mime) (Data) {
if backend == nil { panic("no backend is running") }
return backend.Paste()
return backend.Paste(accept)
}