Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source/blender/windowmanager/intern/wm_event_system.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/source/blender/windowmanager/intern/wm_event_system.c b/source/blender/windowmanager/intern/wm_event_system.c
index 33ba27c849c..646aa71025c 100644
--- a/source/blender/windowmanager/intern/wm_event_system.c
+++ b/source/blender/windowmanager/intern/wm_event_system.c
@@ -577,9 +577,12 @@ void wm_event_do_notifiers(bContext *C)
}
ED_screen_areas_iter (win, screen, area) {
- if ((note->category == NC_SPACE) && note->reference &&
- (note->reference != area->spacedata.first)) {
- continue;
+ if ((note->category == NC_SPACE) && note->reference) {
+ /* Filter out notifiers sent to other spaces. RNA sets the reference to the owning ID
+ * though, the screen, so let notifiers through that reference the entire screen. */
+ if ((note->reference != area->spacedata.first) && (note->reference != screen)) {
+ continue;
+ }
}
wmSpaceTypeListenerParams area_params = {
.window = win,