discard excessive (X11) autorepeat keyboard events if they overload LO
If e.g. a document is slow to redraw, scrolling it by holding down a key such
as PageDown can make LO lag behind and continue processing the queued up
input events even (long) after the key has been released. Since with autorepeat
keyboard events the normal user expectations are to hold it until something
happens and the exact number of the events doesn't matter, simply discard
excessive autorepeat keyboard events if LO can't keep up with them.
(cherry picked from commit fc29d34dc60dda5ddbc8f0444684bd2f4eb3668e)
Change-Id: I45acdc9aa5033647fb80760991437dddfcb6591c
2 files changed