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.
This commit is contained in:
@@ -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.
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user