diff options
Diffstat (limited to 'source/blender/editors/space_stats/space_stats.c')
-rw-r--r-- | source/blender/editors/space_stats/space_stats.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/source/blender/editors/space_stats/space_stats.c b/source/blender/editors/space_stats/space_stats.c index 86659661357..bc79231d976 100644 --- a/source/blender/editors/space_stats/space_stats.c +++ b/source/blender/editors/space_stats/space_stats.c @@ -124,9 +124,16 @@ static void stats_header_region_draw(const bContext *C, ARegion *ar) ED_region_header(C, ar); } -static void stats_main_region_listener(bScreen *UNUSED(sc), ScrArea *UNUSED(sa), ARegion *UNUSED(ar), wmNotifier *UNUSED(wmn)) +static void stats_main_region_listener(bScreen *UNUSED(sc), ScrArea *sa, ARegion *UNUSED(ar), wmNotifier *wmn) { - /* context changes */ + switch(wmn->category) { + case NC_SPACE: { + if (wmn->data == ND_SPACE_STATS) { + ED_area_tag_redraw(sa); + } + break; + } + } } /* only called once, from space/spacetypes.c */ |