Add support for giving up the selection, forcibly and voluntarily

This commit is contained in:
2024-07-11 02:38:30 -04:00
parent 751ec20833
commit 0180a79b25
2 changed files with 37 additions and 0 deletions

View File

@@ -68,6 +68,7 @@ func main () {
window.Listen(xproto.EventMaskPropertyChange)
xevent.PropertyNotifyFun(claim.HandlePropertyNotify).Connect(X, window.Id)
xevent.SelectionRequestFun(claim.HandleSelectionRequest).Connect(X, window.Id)
xevent.SelectionClearFun(claim.HandleSelectionClear).Connect(X, window.Id)
log.Println("running main event loop")
xevent.Main(X)