[fractal/fractal-next] media-viewer: Unfullscreen when going back
- From: Julian Sparber <jsparber src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [fractal/fractal-next] media-viewer: Unfullscreen when going back
- Date: Mon, 24 Jan 2022 15:14:01 +0000 (UTC)
commit 0639b466c431dc90fa8b2261c7baa0fd91fa54a0
Author: Kévin Commaille <zecakeh tedomum fr>
Date: Mon Jan 24 10:39:53 2022 +0100
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()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]