Changeset View
Changeset View
Standalone View
Standalone View
source/blender/windowmanager/intern/wm_event_system.c
| Show First 20 Lines • Show All 2,608 Lines • ▼ Show 20 Lines | else if (event->type == LEFTMOUSE && event->val == KM_RELEASE) { | ||||
| event->customdatafree = 1; | event->customdatafree = 1; | ||||
| /* clear drop icon */ | /* clear drop icon */ | ||||
| screen->do_draw_drag = true; | screen->do_draw_drag = true; | ||||
| /* restore cursor (disabled, see wm_dragdrop.c) */ | /* restore cursor (disabled, see wm_dragdrop.c) */ | ||||
| // WM_cursor_modal_restore(win); | // WM_cursor_modal_restore(win); | ||||
| } | } | ||||
| /* overlap fails otherwise */ | |||||
| if (screen->do_draw_drag) | |||||
| if (win->drawmethod == USER_DRAW_OVERLAP) | |||||
| screen->do_draw = true; | |||||
| } | } | ||||
| /* filter out all events of the pie that spawned the last pie unless it's a release event */ | /* filter out all events of the pie that spawned the last pie unless it's a release event */ | ||||
| static bool wm_event_pie_filter(wmWindow *win, const wmEvent *event) | static bool wm_event_pie_filter(wmWindow *win, const wmEvent *event) | ||||
| { | { | ||||
| if (win->lock_pie_event && win->lock_pie_event == event->type) { | if (win->lock_pie_event && win->lock_pie_event == event->type) { | ||||
| if (event->val == KM_RELEASE) { | if (event->val == KM_RELEASE) { | ||||
| win->lock_pie_event = EVENT_NONE; | win->lock_pie_event = EVENT_NONE; | ||||
| ▲ Show 20 Lines • Show All 1,432 Lines • Show Last 20 Lines | |||||