Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/screen/screen_edit.c
| Show All 31 Lines | |||||
| #include "MEM_guardedalloc.h" | #include "MEM_guardedalloc.h" | ||||
| #include "DNA_object_types.h" | #include "DNA_object_types.h" | ||||
| #include "DNA_scene_types.h" | #include "DNA_scene_types.h" | ||||
| #include "DNA_workspace_types.h" | #include "DNA_workspace_types.h" | ||||
| #include "DNA_userdef_types.h" | #include "DNA_userdef_types.h" | ||||
| #include "DNA_space_types.h" | |||||
| #include "BLI_math.h" | #include "BLI_math.h" | ||||
| #include "BLI_blenlib.h" | #include "BLI_blenlib.h" | ||||
| #include "BLI_utildefines.h" | #include "BLI_utildefines.h" | ||||
| #include "BKE_context.h" | #include "BKE_context.h" | ||||
| #include "BKE_global.h" | #include "BKE_global.h" | ||||
| #include "BKE_icons.h" | #include "BKE_icons.h" | ||||
| ▲ Show 20 Lines • Show All 598 Lines • ▼ Show 20 Lines | ED_screen_areas_iter(win, scr, area_iter) { | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| if (sa) { | if (sa) { | ||||
| /* make overlap active when mouse over */ | /* make overlap active when mouse over */ | ||||
| for (ar = sa->regionbase.first; ar; ar = ar->next) { | for (ar = sa->regionbase.first; ar; ar = ar->next) { | ||||
| if (BLI_rcti_isect_pt_v(&ar->winrct, xy)) { | if (BLI_rcti_isect_pt_v(&ar->winrct, xy)) { | ||||
| scr->active_region = ar; | scr->active_region = ar; | ||||
| #ifdef WITH_IM_OVERTHESPOT | |||||
| if (old_ar != scr->active_region) { | |||||
| WM_window_IM_end(win); | |||||
| if (C && ar->type && ar->type->im_begin) | |||||
| ar->type->im_begin(C, ar); | |||||
| } | |||||
| #endif | |||||
| break; | break; | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| else | else | ||||
| scr->active_region = NULL; | scr->active_region = NULL; | ||||
| /* check for redraw headers */ | /* check for redraw headers */ | ||||
| ▲ Show 20 Lines • Show All 893 Lines • Show Last 20 Lines | |||||