go silent when enter an ignore screen
This commit is contained in:
parent
9dfbb4211e
commit
b02b5ee30d
@ -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
|
||||
|
@ -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):
|
||||
|
@ -33,7 +33,6 @@ if __name__ == "__main__":
|
||||
ignoreFileName = args.file
|
||||
useCurrentScreen = False
|
||||
screen = None
|
||||
print(args.file)
|
||||
if args.screen:
|
||||
screen = args.screen
|
||||
else:
|
||||
|
@ -33,7 +33,6 @@ if __name__ == "__main__":
|
||||
ignoreFileName = args.file
|
||||
useCurrentScreen = False
|
||||
screen = None
|
||||
print(args.file)
|
||||
if args.screen:
|
||||
screen = args.screen
|
||||
else:
|
||||
|
Loading…
Reference in New Issue
Block a user