[PATCH] Decorate the main window when run from outside of the install media.

David Shea dshea at redhat.com
Tue Jul 8 21:03:34 UTC 2014


This means that live/image/dir installs won't get the full screen
anaconda effect, but it also means that when someone unmaximizes the
window during a live/image/dir install that they can still do something
useful with that window.
---
 pyanaconda/ui/gui/__init__.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/pyanaconda/ui/gui/__init__.py b/pyanaconda/ui/gui/__init__.py
index 7055414..6bde7a8 100644
--- a/pyanaconda/ui/gui/__init__.py
+++ b/pyanaconda/ui/gui/__init__.py
@@ -27,6 +27,7 @@ from gi.repository import Gdk, Gtk, AnacondaWidgets, Keybinder, GdkPixbuf
 
 from pyanaconda.i18n import _
 from pyanaconda import product
+from pyanaconda.flags import flags
 
 from pyanaconda.ui import UserInterface, common
 from pyanaconda.ui.gui.utils import gtk_action_wait, busyCursor, unbusyCursor
@@ -269,7 +270,9 @@ class MainWindow(Gtk.Window):
         self.add_accel_group(self._accel_group)
 
         # Set properties on the window
-        self.set_decorated(False)
+        # Decorate the window if running in someone else's window manager
+        if not flags.imageInstall and not flags.livecdInstall and not flags.dirInstall:
+            self.set_decorated(False)
         self.maximize()
 
         self._overlay.add(self._stack)
-- 
2.0.0



More information about the anaconda-patches mailing list