Skip to content

Commit

Permalink
8201570: Get two bytes for the Linux input event type, not four
Browse files Browse the repository at this point in the history
Reviewed-by: jvos
  • Loading branch information
jgneff authored and Johan Vos committed Jul 2, 2020
1 parent f3a0446 commit 126637f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 126637f

Please sign in to comment.