Compare commits

..

1 Commits

Author SHA1 Message Date
9bbe70de85 hpcu: respond to CurrentTime as well
A fresh problem with VIM.

X11 documentation appears to claim that this is valid,
as is using CurrentTime in the response.
2025-11-30 19:01:46 +01:00

View File

@@ -3,10 +3,11 @@ package main
import (
"errors"
"log"
"janouch.name/haven/nexgb"
"janouch.name/haven/nexgb/xfixes"
"janouch.name/haven/nexgb/xproto"
"log"
)
type selectionState struct {
@@ -288,7 +289,8 @@ func handleSelectionRequest(e xproto.SelectionRequestEvent) {
}
if typ == 0 || len(data) > int(setup.MaximumRequestLength)*4-64 ||
state.owning == 0 || e.Time < state.owning {
state.owning == 0 ||
(e.Time != xproto.TimeCurrentTime && e.Time < state.owning) {
// TODO: Use the INCR mechanism for large data transfers instead
// of refusing the request, or at least use PropModeAppend.
//