mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-27 16:59:56 +01:00
Main's #3563 keeps a popup window's layer memory by recording its appearance in the opener's viewport too (note_appeared), with recall_shown and appeared_this_frame. This branch's own fix for the same reset goes: appears_in, layer_viewport, reanchor, appeared_in_pass and the popup pass read before show_popup, the body hook's popup viewport read, and the three trials main covers (scroll offset, second right-click, and the timeout, which reads the same layer memory). Kept: the absorb zone in end_pass (host windows left out, exiting members dropped, the companion bar kept), the palette trial with its trace and the press_judgement and layer_pointer_at hooks, and the pass guard in popup_dismissal. The guard now reads overlay::opening in the opener, which note_appeared stamps in this pass before the popup's nested pass runs. Main's appeared_this_frame is frame-wide and only feeds pressed_elsewhere, so it is not the same signal: a press a later pass of the frame takes must still close the menu.