Update inputManager.py

This commit is contained in:
chrys87 2018-05-23 13:28:32 +02:00 committed by GitHub
parent 5063362dbc
commit 47a5b1d3fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -145,8 +145,11 @@ class inputManager():
except: except:
pass pass
self.setExecuteDeviceGrab() self.setExecuteDeviceGrab()
if newDevice: try:
self.handleDeviceGrab() if self.env['runtime']['screenManager']:
self.handleDeviceGrab()
except:
pass
def removeAllDevices(self): def removeAllDevices(self):
try: try:
self.env['runtime']['inputDriver'].removeAllDevices() self.env['runtime']['inputDriver'].removeAllDevices()