From 200ddd509826871caa93c8c4d1a3f85b9b2f0462 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Thu, 20 Feb 2014 23:32:54 +0100 Subject: do not load blueshift_randr before used MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- TODO | 3 --- src/monitor.py | 3 ++- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/TODO b/TODO index 7e122d3..f1b5601 100644 --- a/TODO +++ b/TODO @@ -1,6 +1,3 @@ -High priority: - Do not load blueshift_randr until used - Medium priority: Command line autocompletion Small examples diff --git a/src/monitor.py b/src/monitor.py index f50c9dc..6a35ef4 100644 --- a/src/monitor.py +++ b/src/monitor.py @@ -23,7 +23,6 @@ from curve import * LIBDIR = 'bin' sys.path.append(LIBDIR) -from blueshift_randr import * randr_opened = False @@ -49,6 +48,7 @@ def close_c_bindings(): ''' global randr_opened if randr_opened: + from blueshift_randr import randr_close randr_opened = False randr_close() @@ -59,6 +59,7 @@ def randr(*crtcs): @param *crtcs The CRT controllers to use, all are used if none are specified ''' + from blueshift_randr import randr_open, randr_apply global randr_opened crtcs = sum([1 << i for i in list(crtcs)]) if crtcs == 0: -- cgit v1.2.3-70-g09d2