presenter: the Presenter View opens its own window over the full-screen show

The show holds the main window full screen, and a viewport mount opened from a
full-screen window shows as a layer in it, so the Presenter View never got a
window of its own. It now opens over the show as production's does
(ViewportWindow::opens_over_full_screen).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Dylan M. Taylor
2026-11-28 09:19:23 +00:00
co-authored by Claude Opus 5.5
parent 83618fc410
commit b0e7f71e1e
+1
View File
@@ -137,6 +137,7 @@ pub(super) fn presenter_pass(ui: &mut Ui, app: &mut crate::SlideApp, show: &mut
ViewportWindow::new(Word::plain("Presenter View — DeckCraft"))
.overlay(|overlay| overlay.size(egui::vec2(1100.0, 700.0)))
.takes_unfocused_keys()
.opens_over_full_screen()
.show(ui, |ui, cx| {
if !craft::ui::runtime::measure::active(ui.ctx()) {
viewport = Some(ui.ctx().viewport_id());