[swell-foop] Disable main stack's transition



commit 3a0bb27ce357494cdc5665ea632a1c526fa9adc4
Author: Iulian Radu <iulian radu67 gmail com>
Date:   Mon Aug 15 14:08:23 2016 +0300

    Disable main stack's transition
    
    Currently, on Wayland, the game frame is displayed outside the
    window if there's a transition set. This patch disables the transition
    to make the game playable.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=769920

 src/swell-foop.vala |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/src/swell-foop.vala b/src/swell-foop.vala
index 00e432e..dcb4782 100644
--- a/src/swell-foop.vala
+++ b/src/swell-foop.vala
@@ -88,8 +88,13 @@ public class SwellFoop : Gtk.Application
         play_button.valign = Gtk.Align.CENTER;
         play_button.halign = Gtk.Align.CENTER;
         play_button.clicked.connect (() => {
-            stack.set_transition_type (Gtk.StackTransitionType.SLIDE_UP);
-            stack.set_transition_duration (500);
+            /* FIXME: Currently, on Wayland, the game frame is displayed outside
+             * the window if there's a transition set. Uncomment these 2 lines
+             * when that's no longer a problem.
+             *
+             * stack.set_transition_type (Gtk.StackTransitionType.SLIDE_UP);
+             * stack.set_transition_duration (500);
+             */
             stack.set_visible_child_name ("game");
             settings.set_boolean ("first-run", false);
         });


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