Pasting implemented (nonworking)

This commit is contained in:
2023-03-30 13:10:58 -04:00
parent 8abc4defa7
commit f9e5503320
4 changed files with 171 additions and 15 deletions
+9 -6
View File
@@ -257,12 +257,15 @@ func (window *window) handleSelectionClear (
connection *xgbutil.XUtil,
event xevent.SelectionClearEvent,
) {
// TODO: schedule the claim to be deleted. when the event loop fires we
// will check to see if the claim is scheduled to be deleted and if it
// is, delete it.
if window.selectionClaim != nil {
window.selectionClaim.scheduledDelete = true
}
window.selectionClaim = nil
}
func (window *window) handleSelectionRequest (
connection *xgbutil.XUtil,
event xevent.SelectionRequestEvent,
) {
if window.selectionClaim == nil { return }
window.selectionClaim.handleSelectionRequest(connection, event)
}
func (window *window) compressExpose (