summaryrefslogtreecommitdiffstats
path: root/src/monitor.py
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-02-20 23:32:54 +0100
committerMattias Andrée <maandree@operamail.com>2014-02-20 23:32:54 +0100
commit200ddd509826871caa93c8c4d1a3f85b9b2f0462 (patch)
treee73588c53aa02cdee6187b556cfe3504f8801f81 /src/monitor.py
parentadd rules to install pdf, ps and dvi manuals (diff)
downloadblueshift-200ddd509826871caa93c8c4d1a3f85b9b2f0462.tar.gz
blueshift-200ddd509826871caa93c8c4d1a3f85b9b2f0462.tar.bz2
blueshift-200ddd509826871caa93c8c4d1a3f85b9b2f0462.tar.xz
do not load blueshift_randr before used
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r--src/monitor.py3
1 files changed, 2 insertions, 1 deletions
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: