grab/ungrab on noKeyPressed()

This commit is contained in:
chrys 2018-05-13 23:43:35 +02:00
parent ae612ce9f2
commit 30372f0440

View File

@ -42,6 +42,8 @@ class screenManager():
self.update(eventData, 'onScreenChange')
self.env['screen']['lastScreenUpdate'] = time.time()
def handleDeviceGrab(self):
if not self.env['runtime']['settingsManager'].getSettingAsBool('keyboard', 'grabDevices'):
return
if self.getCurrScreenIgnored() != self.getPrevScreenIgnored():
self.toggleDeviceGrab = True
if self.toggleDeviceGrab: