Ticket #4066: 0001-Hide-Show-cursor-based-on-input-make-it-available-in.patch

File 0001-Hide-Show-cursor-based-on-input-make-it-available-in.patch, 1.2 KB (added by erikos, 12 years ago)

Hide/Show cursor based on input: make it available in the intro screen

  • bin/sugar-session

    From 489a9e61dbb4d56b5644b0c358e797bd54092c33 Mon Sep 17 00:00:00 2001
    From: Simon Schampijer <simon@laptop.org>
    Date: Fri, 19 Oct 2012 16:45:11 +0200
    Subject: [PATCH shell] Hide/Show cursor based on input: make it available in
     the intro screen
    
    We just have to move it earlier in the startup phase.
    
    Signed-off-by: Simon Schampijer <simon@laptop.org>
    ---
     bin/sugar-session | 2 +-
     1 file changed, 1 insertion(+), 1 deletion(-)
    
    diff --git a/bin/sugar-session b/bin/sugar-session
    index e465d75..23f88a1 100755
    a b def bootstrap(): 
    229229    GObject.idle_add(setup_frame_cb)
    230230    GObject.idle_add(setup_keyhandler_cb)
    231231    GObject.idle_add(setup_gesturehandler_cb)
    232     GObject.idle_add(setup_cursortracker_cb)
    233232    GObject.idle_add(setup_journal_cb)
    234233    GObject.idle_add(setup_notification_service_cb)
    235234    GObject.idle_add(setup_file_transfer_cb)
    def main(): 
    297296    # even when we initially get blocked on the intro screen
    298297    GObject.idle_add(unfreeze_dcon_cb)
    299298
     299    GObject.idle_add(setup_cursortracker_cb)
    300300    # make sure we have the correct cursor in the intro screen
    301301    # TODO #3204
    302302    if subprocess.call('echo $DISPLAY; xsetroot -cursor_name left_ptr', shell=True):