[gnome-shell] screencast: Make it possible to disable draw-cursor



commit 8d617166feaf7afb04f3dbf2d41b64f5233976ed
Author: Alexander Larsson <alexl redhat com>
Date:   Mon Feb 16 16:56:05 2015 +0100

    screencast: Make it possible to disable draw-cursor
    
    drawing cursor is on by default, so the code:
      if (options['draw-cursor'])
        recorder.set_draw_cursor(options['draw-cursor']);
    never lets you unset it.
    
    Fix is to use 'draw-cursor' in options instead.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=744599

 js/ui/screencast.js |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/js/ui/screencast.js b/js/ui/screencast.js
index dd78d39..bbda5fc 100644
--- a/js/ui/screencast.js
+++ b/js/ui/screencast.js
@@ -99,7 +99,7 @@ const ScreencastService = new Lang.Class({
             recorder.set_pipeline(options['pipeline']);
         if (options['framerate'])
             recorder.set_framerate(options['framerate']);
-        if (options['draw-cursor'])
+        if ('draw-cursor' in options)
             recorder.set_draw_cursor(options['draw-cursor']);
     },
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]