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 --- src/monitor.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') 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