Skip to content

Commit ebb59e9

Browse files
jgneffJohan Vos
authored andcommitted
8201568: zForce touchscreen input device fails when closed and immediately reopened
Reviewed-by: jvos
1 parent 97d655f commit ebb59e9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,12 +83,12 @@ class LinuxInputDevice implements Runnable, InputDevice {
8383
this.sysPath = sysPath;
8484
this.udevManifest = udevManifest;
8585
this.capabilities = SysFS.readCapabilities(sysPath);
86-
this.absCaps = LinuxAbsoluteInputCapabilities.getCapabilities(
87-
devNode, capabilities.get("abs"));
8886
fd = system.open(devNode.getPath(), LinuxSystem.O_RDONLY);
8987
if (fd == -1) {
9088
throw new IOException(system.getErrorMessage() + " on " + devNode);
9189
}
90+
this.absCaps = LinuxAbsoluteInputCapabilities.getCapabilities(
91+
devNode, capabilities.get("abs"));
9292
// attempt to grab the device. If the grab fails, keep going.
9393
int EVIOCGRAB = system.IOW('E', 0x90, 4);
9494
system.ioctl(fd, EVIOCGRAB, 1);

0 commit comments

Comments
 (0)