Grease Pencil notifier/listener cleanup
[blender.git] / source / blender / editors / space_action / space_action.c
index 92b6517cbd95222c00812d89b50e820c12887998..2e92b1eea6fa6587c7a5b1ddbef51031c248be52 100644 (file)
@@ -357,8 +357,8 @@ static void action_listener(ScrArea *sa, wmNotifier *wmn)
        
        /* context changes */
        switch (wmn->category) {
-               case NC_SCREEN:
-                       if (wmn->data == ND_GPENCIL) {
+               case NC_GPENCIL:
+                       if (wmn->action == NA_EDITED) {
                                /* only handle this event in GPencil mode for performance considerations */
                                if (saction->mode == SACTCONT_GPENCIL)
                                        ED_area_tag_redraw(sa);