aboutsummaryrefslogtreecommitdiff
path: root/uinput_mng
diff options
context:
space:
mode:
Diffstat (limited to 'uinput_mng')
-rwxr-xr-xuinput_mng2
1 files changed, 1 insertions, 1 deletions
diff --git a/uinput_mng b/uinput_mng
index da71dc0..40cb258 100755
--- a/uinput_mng
+++ b/uinput_mng
@@ -333,7 +333,7 @@ with contextlib.ExitStack() as stack:
events = sel.select()
logger.debug('got events:')
for key, mask in events:
- tgt = key.data if key.data else key.fileobj
+ tgt = key.data if key.data is not None else key.fileobj
try:
tgt.process(key)
except Exception as e: