Changeset View
Changeset View
Standalone View
Standalone View
source/blender/windowmanager/intern/wm_event_system.c
| Show First 20 Lines • Show All 4,646 Lines • ▼ Show 20 Lines | if (mval[0] < 0 || mval[1] < 0 || mval[0] > WM_window_pixels_x(win) || | ||||
| /* potential XXX ugly... I wouldn't have added a modalhandlers list | /* potential XXX ugly... I wouldn't have added a modalhandlers list | ||||
| * (introduced in rev 23331, ton). */ | * (introduced in rev 23331, ton). */ | ||||
| LISTBASE_FOREACH (wmEventHandler *, handler, &win->modalhandlers) { | LISTBASE_FOREACH (wmEventHandler *, handler, &win->modalhandlers) { | ||||
| if (ELEM(handler->type, WM_HANDLER_TYPE_UI, WM_HANDLER_TYPE_OP)) { | if (ELEM(handler->type, WM_HANDLER_TYPE_UI, WM_HANDLER_TYPE_OP)) { | ||||
| return NULL; | return NULL; | ||||
| } | } | ||||
| } | } | ||||
| wmWindow *win_other = WM_window_find_under_cursor(wm, win, win, mval, mval); | wmWindow *win_other = WM_window_find_under_cursor(win, mval, mval); | ||||
| if (win_other) { | if (win_other && win_other != win) { | ||||
| copy_v2_v2_int(event->xy, mval); | copy_v2_v2_int(event->xy, mval); | ||||
| return win_other; | return win_other; | ||||
| } | } | ||||
| } | } | ||||
| return NULL; | return NULL; | ||||
| } | } | ||||
| static bool wm_event_is_double_click(const wmEvent *event) | static bool wm_event_is_double_click(const wmEvent *event) | ||||
| ▲ Show 20 Lines • Show All 960 Lines • Show Last 20 Lines | |||||