Fix the menu popup location when dropping blend files under Wayland
Even though the event's location matched the drop event, the `wmWindow.eventstate` was not updated which was used for the pop-up menu location.
This commit is contained in:
parent
ff286a9fcf
commit
a10cac413e
|
@ -1367,6 +1367,10 @@ static bool ghost_event_proc(GHOST_EventHandle evt, GHOST_TUserDataPtr C_void_pt
|
|||
event.xy[0] = ddd->x;
|
||||
event.xy[1] = ddd->y;
|
||||
|
||||
/* The values from #wm_window_update_eventstate may not match (under WAYLAND they don't)
|
||||
* Write this into the event state. */
|
||||
copy_v2_v2_int(win->eventstate->xy, event.xy);
|
||||
|
||||
event.flag = 0;
|
||||
|
||||
/* No context change! C->wm->windrawable is drawable, or for area queues. */
|
||||
|
|
Loading…
Reference in New Issue