From 0639b466c431dc90fa8b2261c7baa0fd91fa54a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Commaille?= Date: Mon, 24 Jan 2022 10:39:53 +0100 Subject: [PATCH] media-viewer: Unfullscreen when going back --- src/session/media_viewer.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/session/media_viewer.rs b/src/session/media_viewer.rs index 342b490c..1b7bbdba 100644 --- a/src/session/media_viewer.rs +++ b/src/session/media_viewer.rs @@ -41,6 +41,11 @@ mod imp { klass.install_action("media-viewer.close", None, move |obj, _, _| { let priv_ = imp::MediaViewer::from_instance(obj); + + if obj.fullscreened() { + obj.activate_action("win.toggle-fullscreen", None).unwrap(); + } + if let Some(stream) = priv_ .media .child()