go silent when enter an ignore screen
This commit is contained in:
parent
9dfbb4211e
commit
b02b5ee30d
@ -59,7 +59,6 @@ class inputManager():
|
|||||||
return
|
return
|
||||||
if self.env['runtime']['screenManager'].getCurrScreenIgnored():
|
if self.env['runtime']['screenManager'].getCurrScreenIgnored():
|
||||||
self.ungrabAllDevices()
|
self.ungrabAllDevices()
|
||||||
self.env['runtime']['outputManager'].interruptOutput()
|
|
||||||
else:
|
else:
|
||||||
self.grabAllDevices()
|
self.grabAllDevices()
|
||||||
self.executeDeviceGrab = False
|
self.executeDeviceGrab = False
|
||||||
|
@ -61,6 +61,8 @@ class screenManager():
|
|||||||
if not self.isSuspendingScreen(self.env['screen']['newTTY']):
|
if not self.isSuspendingScreen(self.env['screen']['newTTY']):
|
||||||
self.update(eventData, 'onScreenChange')
|
self.update(eventData, 'onScreenChange')
|
||||||
self.env['screen']['lastScreenUpdate'] = time.time()
|
self.env['screen']['lastScreenUpdate'] = time.time()
|
||||||
|
else:
|
||||||
|
self.env['runtime']['outputManager'].interruptOutput()
|
||||||
|
|
||||||
def handleScreenUpdate(self, eventData):
|
def handleScreenUpdate(self, eventData):
|
||||||
self.env['screen']['oldApplication'] = self.env['screen']['newApplication']
|
self.env['screen']['oldApplication'] = self.env['screen']['newApplication']
|
||||||
@ -74,6 +76,8 @@ class screenManager():
|
|||||||
# or len(self.env['screen']['newDelta']) > 6:
|
# or len(self.env['screen']['newDelta']) > 6:
|
||||||
# self.env['runtime']['screenDriver'].getCurrApplication()
|
# self.env['runtime']['screenDriver'].getCurrApplication()
|
||||||
self.env['screen']['lastScreenUpdate'] = time.time()
|
self.env['screen']['lastScreenUpdate'] = time.time()
|
||||||
|
elif self.isCurrScreenIgnoredChanged():
|
||||||
|
self.env['runtime']['outputManager'].interruptOutput()
|
||||||
def getCurrScreenIgnored(self):
|
def getCurrScreenIgnored(self):
|
||||||
return self.currScreenIgnored
|
return self.currScreenIgnored
|
||||||
def getPrevScreenIgnored(self):
|
def getPrevScreenIgnored(self):
|
||||||
|
@ -33,7 +33,6 @@ if __name__ == "__main__":
|
|||||||
ignoreFileName = args.file
|
ignoreFileName = args.file
|
||||||
useCurrentScreen = False
|
useCurrentScreen = False
|
||||||
screen = None
|
screen = None
|
||||||
print(args.file)
|
|
||||||
if args.screen:
|
if args.screen:
|
||||||
screen = args.screen
|
screen = args.screen
|
||||||
else:
|
else:
|
||||||
|
@ -33,7 +33,6 @@ if __name__ == "__main__":
|
|||||||
ignoreFileName = args.file
|
ignoreFileName = args.file
|
||||||
useCurrentScreen = False
|
useCurrentScreen = False
|
||||||
screen = None
|
screen = None
|
||||||
print(args.file)
|
|
||||||
if args.screen:
|
if args.screen:
|
||||||
screen = args.screen
|
screen = args.screen
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user