Fixed INCR

Oops!
This commit is contained in:
2023-03-29 23:24:42 -04:00
parent fc228a13d3
commit 8abc4defa7
4 changed files with 56 additions and 11 deletions

View File

@@ -244,6 +244,27 @@ func (window *window) handleSelectionNotify (
if !window.selectionRequest.open() { window.selectionRequest = nil }
}
func (window *window) handlePropertyNotify (
connection *xgbutil.XUtil,
event xevent.PropertyNotifyEvent,
) {
if window.selectionRequest == nil { return }
window.selectionRequest.handlePropertyNotify(connection, event)
if !window.selectionRequest.open() { window.selectionRequest = nil }
}
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
}
}
func (window *window) compressExpose (
firstEvent xproto.ExposeEvent,
) (