Skip to content
Permalink
Browse files

8201570: Get two bytes for the Linux input event type, not four

Reviewed-by: jvos
  • Loading branch information
jgneff authored and Johan Vos committed Jul 2, 2020
1 parent f3a0446 commit 126637f5889fb9338606f6d69b3045d28c2094aa
@@ -90,7 +90,7 @@ int getEventSize() {
*/
synchronized boolean put(ByteBuffer event) throws
InterruptedException {
boolean isSync = event.getInt(eventStruct.getTypeIndex()) == 0
boolean isSync = event.getShort(eventStruct.getTypeIndex()) == 0
&& event.getInt(eventStruct.getValueIndex()) == 0;
while (bb.limit() - bb.position() < event.limit()) {
// Block if bb is full. This should be the

0 comments on commit 126637f

Please sign in to comment.
You can’t perform that action at this time.