From 7ddb8a208504de462546894b8bf7aa6272ad360d Mon Sep 17 00:00:00 2001 From: chrys87 Date: Tue, 23 Aug 2016 13:01:35 +0200 Subject: [PATCH] reset review after screenchange --- .../88000-screen_chnage_reset_review_cursor | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 src/fenrir-package/commands/onScreenChanged/88000-screen_chnage_reset_review_cursor diff --git a/src/fenrir-package/commands/onScreenChanged/88000-screen_chnage_reset_review_cursor b/src/fenrir-package/commands/onScreenChanged/88000-screen_chnage_reset_review_cursor new file mode 100644 index 00000000..361cff25 --- /dev/null +++ b/src/fenrir-package/commands/onScreenChanged/88000-screen_chnage_reset_review_cursor @@ -0,0 +1,15 @@ +#!/bin/python + +class command(): + def __init__(self): + pass + def run(self, environment): + if environment['screenData']['newTTY'] == environment['screenData']['oldTTY']: + return environment + environment['screenData']['oldCursorReview'] = None + environment['screenData']['newCursorReview'] = None + return environment + def setCallback(self, callback): + pass + def shutdown(self): + pass