Skip to content

Commit

Permalink
clipboard: fix error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
d-tsuji authored and aarzilli committed May 11, 2020
1 parent 036f49e commit 254f9a9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion clipboard/clipboard.go
Expand Up @@ -139,7 +139,8 @@ func eventLoop() {
xgb.Put32(buf[i*4:], uint32(atom))
}

xproto.ChangePropertyChecked(X, xproto.PropModeReplace, e.Requestor, e.Property, atomAtom, 32, uint32(len(targetAtoms)), buf).Check()
cpc := xproto.ChangePropertyChecked(X, xproto.PropModeReplace, e.Requestor, e.Property, atomAtom, 32, uint32(len(targetAtoms)), buf)
err := cpc.Check()
if err == nil {
sendSelectionNotify(e)
} else {
Expand Down

0 comments on commit 254f9a9

Please sign in to comment.