From bdbb265bf9ad2ffcb3739dd611895364bd2ce848 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Filipe=20La=C3=ADns?= <lains@archlinux.org>
Date: Tue, 6 Aug 2019 08:47:08 +0100
Subject: [PATCH] doc: device: fix grab() example
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Signed-off-by: Filipe Laíns <lains@archlinux.org>
---
 libevdev/device.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libevdev/device.py b/libevdev/device.py
index f98e159..7f6e326 100644
--- a/libevdev/device.py
+++ b/libevdev/device.py
@@ -795,7 +795,7 @@ class Device(object):
             d.grab()
             # device is now exclusively grabbed
 
-            fd.close()
+            fd1.close()
             fd2 = open("/dev/input/event0", "rb")
             d.fd = fd2
             # device is now exclusively grabbed
-- 
GitLab