Skip to content

Commit 126637f

Browse files
jgneffJohan Vos
authored andcommitted
8201570: Get two bytes for the Linux input event type, not four
Reviewed-by: jvos
1 parent f3a0446 commit 126637f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/javafx.graphics/src/main/java/com/sun/glass/ui/monocle/LinuxEventBuffer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ int getEventSize() {
9090
*/
9191
synchronized boolean put(ByteBuffer event) throws
9292
InterruptedException {
93-
boolean isSync = event.getInt(eventStruct.getTypeIndex()) == 0
93+
boolean isSync = event.getShort(eventStruct.getTypeIndex()) == 0
9494
&& event.getInt(eventStruct.getValueIndex()) == 0;
9595
while (bb.limit() - bb.position() < event.limit()) {
9696
// Block if bb is full. This should be the

0 commit comments

Comments
 (0)