[eog] EogApplication: Don't open empty windows fullscreened
- From: Felix Riemann <friemann src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [eog] EogApplication: Don't open empty windows fullscreened
- Date: Sun, 8 Dec 2019 14:17:45 +0000 (UTC)
commit 2dca2f0e7f96ebdff4d679c9d5c928b20d336e6b
Author: Felix Riemann <friemann gnome org>
Date: Sun Dec 8 15:02:22 2019 +0100
EogApplication: Don't open empty windows fullscreened
On empty windows functions to enter/leave fullscreen may be disabled.
Avoid having a situation where leaving fullscreen may become
non-obvious to the user and instead stay windowed.
Fixes #66.
src/eog-application.c | 4 ++++
1 file changed, 4 insertions(+)
---
diff --git a/src/eog-application.c b/src/eog-application.c
index 5383277e..a1227ea7 100644
--- a/src/eog-application.c
+++ b/src/eog-application.c
@@ -529,6 +529,10 @@ eog_application_open_window (EogApplication *application,
new_window = GTK_WIDGET (eog_application_get_empty_window (application));
if (new_window == NULL) {
+ /* Filter out fullscreen flags to avoid going fullscreen
+ * with functions to leave fullscreen possibly being
+ * disabled due to the empty model */
+ flags &= ~(EOG_STARTUP_FULLSCREEN | EOG_STARTUP_SLIDE_SHOW);
new_window = eog_window_new (flags);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]