[gnome-boxes] app: Switch to fullscreen after connection is complete



commit 2dff93018f3a69fd4b91ec4cb83492200452f94b
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Sat Aug 31 04:08:45 2013 +0300

    app: Switch to fullscreen after connection is complete
    
    Without this change, there is no toolbar visible while connecting to a
    box after the OCD change.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=706414

 src/app.vala |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/app.vala b/src/app.vala
index 520cefe..3b0ca8e 100644
--- a/src/app.vala
+++ b/src/app.vala
@@ -919,6 +919,9 @@ private class Boxes.App: Boxes.UI {
         machine.connect_display.begin (flags, (obj, res) => {
             try {
                 machine.connect_display.end (res);
+
+                if (maximized)
+                    fullscreen = true;
             } catch (GLib.Error e) {
                 ui_state = UIState.COLLECTION;
                 debug ("connect display failed: %s", e.message);
@@ -949,9 +952,6 @@ private class Boxes.App: Boxes.UI {
                 view.get_item_pos (item, out item_x, out item_y);
 
                 connect_to (machine, item_x, item_y);
-
-                if (maximized)
-                    fullscreen = true;
             } else
                 warning ("unknown item, fix your code");
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]