Grease Pencil notifier/listener cleanup
[blender.git] / source / blender / editors / space_sequencer / space_sequencer.c
index 21c70a5b4a96d66f69fe17d7d67321b1cf03bba7..7bfe58cb50a950709a630b865a8d9d469b87046f 100644 (file)
@@ -556,8 +556,8 @@ static void sequencer_preview_area_listener(ARegion *ar, wmNotifier *wmn)
 {
        /* context changes */
        switch (wmn->category) {
-               case NC_SCREEN:
-                       if (wmn->data == ND_GPENCIL) {
+               case NC_GPENCIL:
+                       if (wmn->action == NA_EDITED) {
                                ED_region_tag_redraw(ar);
                        }
                        break;
@@ -610,8 +610,8 @@ static void sequencer_buttons_area_listener(ARegion *ar, wmNotifier *wmn)
 {
        /* context changes */
        switch (wmn->category) {
-               case NC_SCREEN:
-                       if (wmn->data == ND_GPENCIL) {
+               case NC_GPENCIL:
+                       if (wmn->data == ND_DATA) {
                                ED_region_tag_redraw(ar);
                        }
                        break;