Changeset View
Changeset View
Standalone View
Standalone View
source/blender/windowmanager/intern/wm_event_system.cc
| Show First 20 Lines • Show All 71 Lines • ▼ Show 20 Lines | |||||
| #include "WM_toolsystem.h" | #include "WM_toolsystem.h" | ||||
| #include "WM_types.h" | #include "WM_types.h" | ||||
| #include "wm.h" | #include "wm.h" | ||||
| #include "wm_event_system.h" | #include "wm_event_system.h" | ||||
| #include "wm_event_types.h" | #include "wm_event_types.h" | ||||
| #include "wm_surface.h" | #include "wm_surface.h" | ||||
| #include "wm_window.h" | #include "wm_window.h" | ||||
| #include "wm_window_private.h" | |||||
| #include "DEG_depsgraph.h" | #include "DEG_depsgraph.h" | ||||
| #include "DEG_depsgraph_query.h" | #include "DEG_depsgraph_query.h" | ||||
| /** | /** | ||||
| * When a gizmo is highlighted and uses click/drag events, | * When a gizmo is highlighted and uses click/drag events, | ||||
| * this prevents mouse button press events from being passed through to other key-maps | * this prevents mouse button press events from being passed through to other key-maps | ||||
| * which would obscure those events. | * which would obscure those events. | ||||
| ▲ Show 20 Lines • Show All 611 Lines • ▼ Show 20 Lines | if (wm->winactive) { | ||||
| wmWindow *win = wm->winactive; | wmWindow *win = wm->winactive; | ||||
| CTX_wm_window_set(C, win); | CTX_wm_window_set(C, win); | ||||
| WM_window_cursor_keymap_status_refresh(C, win); | WM_window_cursor_keymap_status_refresh(C, win); | ||||
| CTX_wm_window_set(C, nullptr); | CTX_wm_window_set(C, nullptr); | ||||
| } | } | ||||
| /* Auto-run warning. */ | /* Auto-run warning. */ | ||||
| wm_test_autorun_warning(C); | wm_test_autorun_warning(C); | ||||
| /* Deprecation warning. */ | |||||
| wm_test_opengl_deprecation_warning(C); | |||||
| GPU_render_end(); | GPU_render_end(); | ||||
| } | } | ||||
| static bool wm_event_always_pass(const wmEvent *event) | static bool wm_event_always_pass(const wmEvent *event) | ||||
| { | { | ||||
| /* Some events we always pass on, to ensure proper communication. */ | /* Some events we always pass on, to ensure proper communication. */ | ||||
| return ISTIMER(event->type) || (event->type == WINDEACTIVATE); | return ISTIMER(event->type) || (event->type == WINDEACTIVATE); | ||||
| ▲ Show 20 Lines • Show All 5,444 Lines • Show Last 20 Lines | |||||