fix instance issue

This commit is contained in:
chrys
2018-05-14 20:03:39 +02:00
parent 670afb5c58
commit 79cc8ef13d
2 changed files with 8 additions and 12 deletions

View File

@ -49,12 +49,10 @@ class screenManager():
if self.toggleDeviceGrab:
if self.env['runtime']['inputManager'].noKeyPressed():
if self.getCurrScreenIgnored():
print('ungrab')
self.env['runtime']['inputManager'].ungrabAllDevices()
self.env['runtime']['outputManager'].interruptOutput()
else:
self.env['runtime']['inputManager'].grabAllDevices()
print('grab')
self.toggleDeviceGrab = False
def handleScreenUpdate(self, eventData):