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
path: root/source
diff options
context:
space:
mode:
authorJacques Lucke <jacques@blender.org>2020-05-25 19:33:12 +0300
committerJulian Eisel <julian@blender.org>2020-05-26 11:38:46 +0300
commit2dd6d0ce4b6d0b72274234073306982c3122c904 (patch)
tree8b9dd22d71bb484cc624c9637973846210195596 /source
parentecc395e473d717e6f9f791a3daf12007a52eecbb (diff)
Fix T76926: Crash with Full Screen file browser window preference
Alternative fix for T75292 & T73579 (see b75ce05c3b0f), that does not cause this crash. The crash happened because cancelling the file browser removes its screen (as in bScreen). Before rBb75ce05c3b0f, the file browser event wouldn't be handled any further then. After it, it would still be passed to other areas, while the screen pointer was dangling. Now the event is only skipped for UI handlers. Reviewed by: Julian Eisel
Diffstat (limited to 'source')
-rw-r--r--source/blender/windowmanager/intern/wm_event_system.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/source/blender/windowmanager/intern/wm_event_system.c b/source/blender/windowmanager/intern/wm_event_system.c
index 32b6b8b9c4a..5961c6d807a 100644
--- a/source/blender/windowmanager/intern/wm_event_system.c
+++ b/source/blender/windowmanager/intern/wm_event_system.c
@@ -563,7 +563,7 @@ void wm_event_do_notifiers(bContext *C)
static int wm_event_always_pass(const wmEvent *event)
{
/* some events we always pass on, to ensure proper communication */
- return ISTIMER(event->type) || (event->type == WINDEACTIVATE) || (event->type == EVT_FILESELECT);
+ return ISTIMER(event->type) || (event->type == WINDEACTIVATE);
}
/** \} */
@@ -602,6 +602,12 @@ static int wm_handler_ui_call(bContext *C,
}
}
+ /* Don't block file-select events. Those are triggered by a separate file browser window.
+ * See T75292. */
+ if (event->type == EVT_FILESELECT) {
+ return WM_UI_HANDLER_CONTINUE;
+ }
+
/* we set context to where ui handler came from */
if (handler->context.area) {
CTX_wm_area_set(C, handler->context.area);