summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-04-04 15:23:18 +0200
committerMattias Andrée <maandree@operamail.com>2014-04-04 15:23:31 +0200
commit858e273164bd1e4675c591b0f561c0855949d5dd (patch)
tree1855ba200183d38821798036f575068b35006ca0 /examples
parentmulti-display support can apply once, then it segfaults (diff)
downloadblueshift-858e273164bd1e4675c591b0f561c0855949d5dd.tar.gz
blueshift-858e273164bd1e4675c591b0f561c0855949d5dd.tar.bz2
blueshift-858e273164bd1e4675c591b0f561c0855949d5dd.tar.xz
fix double free error and sigfault error in multi-display support
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'examples')
-rw-r--r--examples/comprehensive12
1 files changed, 6 insertions, 6 deletions
diff --git a/examples/comprehensive b/examples/comprehensive
index 41b0137..dcde526 100644
--- a/examples/comprehensive
+++ b/examples/comprehensive
@@ -90,8 +90,8 @@ download_command = None
# Method for applying colour curves in X.
-apply_curves_x = randr
-#apply_curves_x = vidmode
+#apply_curves_x = randr
+apply_curves_x = vidmode
# Method for applying colour curves in TTY.
apply_curves_tty_ = drm
@@ -131,7 +131,7 @@ def apply_curves(*crtcs, screen = 0):
@param screen:int The screen to which the monitors belong
'''
# Single display and single server, variant:
- #(apply_curves_tty if ttymode apply_curves_x)(*crtcs, screen = screen)
+ (apply_curves_tty if ttymode apply_curves_x)(*crtcs, screen = screen)
# Variant for TTY and all X display:
#apply_curves_tty(*crtcs, screen = screen)
@@ -144,9 +144,9 @@ def apply_curves(*crtcs, screen = 0):
# pass
# Variant for TTY and selected X displays:
- apply_curves_tty(*crtcs, screen = screen)
- for display in [None, ':1']: # Current and :1
- apply_curves_x(*crtcs, screen = screen, display = display)
+ #apply_curves_tty(*crtcs, screen = screen)
+ #for display in [None, ':1']: # Current and :1
+ # apply_curves_x(*crtcs, screen = screen, display = display)
# Keep uncomment to use solar position.