Commit Graph
8 Commits
Author SHA1 Message Date
dotCooCoo c201908614 overlay: a window raised after a carried raise comes in front of it
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.
2026-11-29 14:27:18 -08:00
bflatastic 6fcf61c816 overlay: a raise asked in the pass the floating windows show again holds: egui raises every layer that shows again and keeps the old order among them, so the asked raise is asked again in the next pass (Persist::raise_again). A document window raised as Presentation Mode ends comes to the front. Trial a_window_raised_as_the_windows_show_again_comes_to_the_front 2026-11-25 15:42:17 +07:00
bflatastic 24e30ffacb ui-shell: a document window's raise brings its fallback layer to the front in that pass (overlay::raise), as a press on it does: it only asked an OS window for focus 2026-11-23 19:27:33 +07:00
bflatastic 295c967c65 ui-shell: a document window's fallback layer moves by its title row and reports where a move or resize took it, so a host that places the window keeps it there
The fallback overlay was not movable, so its title row had no move band, and DocumentWindow dropped the layer's placement changes while first_placed held the window at the host's rect. DocumentWindowOutput::placed gives the rect a move or resize reached in the pass.
2026-11-23 13:27:47 +07:00
David MannandClaude Opus 5.5 4ba7c7e215 DocumentWindow: a level of its own; first_placed says the window is kept there (photocraft#16415)
DocumentWindow::level stands the window at a WindowLevel; with Palette a
floating document stays above the app's main window while the app is
active, drops below a blocking dialog and hides with the minimized main
window. first_placed's doc says what it does: the window is kept at the
rect while shown, so a caller whose user moves the window follows it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 17:51:51 +01:00
aiongg b66a60caf8 DocumentWindow: the body takes the window's room and never scrolls 2026-11-21 01:42:09 +00:00
aiongg 14d5ec609a cargo fmt 2026-11-15 10:23:21 +00:00
aiongg 1951630307 canvas-widgets-w10: net change of 5 commits
- canvas-widgets-w10: partly written (run interrupted)
- canvas-widgets-w10: partly written (run interrupted)
- canvas-widgets-w10: partly written (run interrupted)
- canvas-widgets-w10: finished by an agent
- canvas-widgets-w10: review fixes (review-1)
2026-11-15 04:46:05 +00:00