commit before doing some hefty shapekey change, will break compilation
[blender-staging.git] / source / blender / editors / space_sequencer / space_sequencer.c
index c2756b05946cf342ef087af4883e9c131a8f1c77..206070b7095e56404a08ec6cc48b9c530b9b6fb9 100644 (file)
@@ -190,7 +190,7 @@ static void sequencer_main_area_init(wmWindowManager *wm, ARegion *ar)
        UI_view2d_region_reinit(&ar->v2d, V2D_COMMONVIEW_CUSTOM, ar->winx, ar->winy);
        
        /* own keymap */
-       keymap= WM_keymap_find(wm, "Sequencer", SPACE_SEQ, 0);
+       keymap= WM_keymap_find(wm->defaultconf, "Sequencer", SPACE_SEQ, 0);
        WM_event_add_keymap_handler_bb(&ar->handlers, keymap, &ar->v2d.mask, &ar->winrct);
 }
 
@@ -245,6 +245,14 @@ static void sequencer_buttons_area_listener(ARegion *ar, wmNotifier *wmn)
 {
        /* context changes */
        switch(wmn->category) {
+               case NC_SCENE:
+               switch(wmn->data) {
+                       case ND_FRAME:
+                       case ND_SEQUENCER:
+                               ED_region_tag_redraw(ar);
+                               break;
+               }
+               break;
                case NC_SPACE:
                        if(wmn->data == ND_SPACE_SEQUENCER)
                                ED_region_tag_redraw(ar);