Fixed issue with X backend not recognizing key repeats
This commit is contained in:
parent
e3aea7fc9e
commit
6e7cf285cc
@ -154,7 +154,7 @@ func (window *Window) handleKeyRelease (
|
||||
untypedEvent := nextEvents[0]
|
||||
if untypedEvent.Err == nil {
|
||||
typedEvent, ok :=
|
||||
untypedEvent.Event.(xproto.KeyReleaseEvent)
|
||||
untypedEvent.Event.(xproto.KeyPressEvent)
|
||||
|
||||
if ok && typedEvent.Detail == keyEvent.Detail &&
|
||||
typedEvent.Event == keyEvent.Event &&
|
||||
|
Reference in New Issue
Block a user