From a10cac413e3c612ce2aaa93cf71348df3966859c Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Thu, 4 Aug 2022 22:33:26 +1000 Subject: 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. --- source/blender/windowmanager/intern/wm_window.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'source/blender/windowmanager') diff --git a/source/blender/windowmanager/intern/wm_window.c b/source/blender/windowmanager/intern/wm_window.c index a1ebe1fc76f..a5690b52a5a 100644 --- a/source/blender/windowmanager/intern/wm_window.c +++ b/source/blender/windowmanager/intern/wm_window.c @@ -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. */ -- cgit v1.2.3