summaryrefslogtreecommitdiffstats
path: root/src/monitor.py
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-04-05 19:51:20 +0200
committerMattias Andrée <maandree@operamail.com>2014-04-05 19:51:20 +0200
commit3b54aa6b6b0baa8d30ddd6290ad43ef42e745968 (patch)
treeafc40a5244a2023fb531b2cebb2d7d4f6d48c534 /src/monitor.py
parentremove crtc parameter from C and Cython functions for VidMode (diff)
downloadblueshift-3b54aa6b6b0baa8d30ddd6290ad43ef42e745968.tar.gz
blueshift-3b54aa6b6b0baa8d30ddd6290ad43ef42e745968.tar.bz2
blueshift-3b54aa6b6b0baa8d30ddd6290ad43ef42e745968.tar.xz
support more than 64 monitors with randr
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'src/monitor.py')
-rw-r--r--src/monitor.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/monitor.py b/src/monitor.py
index e94c1e8..fa3d4c5 100644
--- a/src/monitor.py
+++ b/src/monitor.py
@@ -152,7 +152,7 @@ def randr(*crtcs, screen = 0, display = None):
from blueshift_randr import randr_open, randr_apply, randr_close
global randr_opened
# Select CRTC:s
- crtcs = sum([1 << i for i in crtcs]) if len(crtcs) > 0 else ((1 << 64) - 1)
+ crtcs = list(crtcs) if len(crtcs) > 0 else [-1]
# Convert curves to [0, 0xFFFF] integer lists
(R_curve, G_curve, B_curve) = translate_to_integers()