lib/fusuma/libinput_commands.rb in fusuma-0.9.2 vs lib/fusuma/libinput_commands.rb in fusuma-0.10.1
- old
+ new
@@ -68,9 +68,10 @@
'libinput-debug-events'
end
end
private
+
# use device option only if libinput detect only 1 device
# @return [String]
def device_option
return unless Device.available.size == 1
"--device /dev/input/#{Device.available.first.id}"