go silent when enter an ignore screen

This commit is contained in:
chrys 2018-06-04 08:06:39 +02:00
parent 9dfbb4211e
commit b02b5ee30d
4 changed files with 4 additions and 3 deletions

View File

@ -59,7 +59,6 @@ class inputManager():
return
if self.env['runtime']['screenManager'].getCurrScreenIgnored():
self.ungrabAllDevices()
self.env['runtime']['outputManager'].interruptOutput()
else:
self.grabAllDevices()
self.executeDeviceGrab = False

View File

@ -61,6 +61,8 @@ class screenManager():
if not self.isSuspendingScreen(self.env['screen']['newTTY']):
self.update(eventData, 'onScreenChange')
self.env['screen']['lastScreenUpdate'] = time.time()
else:
self.env['runtime']['outputManager'].interruptOutput()
def handleScreenUpdate(self, eventData):
self.env['screen']['oldApplication'] = self.env['screen']['newApplication']
@ -74,6 +76,8 @@ class screenManager():
# or len(self.env['screen']['newDelta']) > 6:
# self.env['runtime']['screenDriver'].getCurrApplication()
self.env['screen']['lastScreenUpdate'] = time.time()
elif self.isCurrScreenIgnoredChanged():
self.env['runtime']['outputManager'].interruptOutput()
def getCurrScreenIgnored(self):
return self.currScreenIgnored
def getPrevScreenIgnored(self):

View File

@ -33,7 +33,6 @@ if __name__ == "__main__":
ignoreFileName = args.file
useCurrentScreen = False
screen = None
print(args.file)
if args.screen:
screen = args.screen
else:

View File

@ -33,7 +33,6 @@ if __name__ == "__main__":
ignoreFileName = args.file
useCurrentScreen = False
screen = None
print(args.file)
if args.screen:
screen = args.screen
else: