lib/fusuma/device.rb in fusuma-2.5.1 vs lib/fusuma/device.rb in fusuma-3.0.0
- old
+ new
@@ -64,9 +64,10 @@
# @return [Array]
def fetch_devices
line_parser = LineParser.new
libinput_command = Plugin::Inputs::LibinputCommandInput.new.command
+ # note: this libinput command takes a nontrivial amout of time (~200ms)
libinput_command.list_devices do |line|
line_parser.push(line)
end
line_parser.generate_devices
end