mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-30 18:27:00 +01:00
A raise asked in the pass a floating window first shows is asked again in the next pass (Persist::raise_again). When another window was raised in that next pass, both went to the top of egui's area order together, and egui keeps the old order among the layers it raises in one pass. The window raised first had already gone above the second one, so it stayed in front: activating one document window and then another one frame later left the first in front. end_pass now compares egui's area order of the lifted layers with the raise order. When a carried raise stands above a raise asked in this pass, only this pass's raises go up, and every raise is asked again in the next pass, where the newer ones already stand above the carried ones. A root asked more than once in a pass is carried once, in its last place. Test: a_window_raised_after_a_carried_raise_comes_in_front_of_it.