2.5
[blender.git] / source / blender / windowmanager / intern / wm_event_system.c
index a083edf826a5296fbf757d1720e2d6ae9f048fc9..6aa8c9804564fe3d1f7dd4213c869e6e52a319b8 100644 (file)
@@ -648,7 +648,8 @@ void wm_event_do_handlers(bContext *C)
                                int doit= 0;
                                
                                /* XXX to solve, here screen handlers? */
-                               ED_screen_set_subwinactive(win);        /* state variables in screen */
+                               if(!wm_event_always_pass(event))
+                                       ED_screen_set_subwinactive(win);        /* state variables in screen */
                                
                                for(sa= win->screen->areabase.first; sa; sa= sa->next) {
                                        if(wm_event_always_pass(event) || wm_event_prev_inside_i(event, &sa->totrct)) {