[gnome-shell] layout: actually hide keyboard when hiding keyboard



commit 3b81465d3274ece9020a140c00844479d47338d1
Author: Ray Strode <rstrode redhat com>
Date:   Tue Aug 15 14:48:47 2017 -0400

    layout: actually hide keyboard when hiding keyboard
    
    Right now we just tuck it off screen, which may leak onto another
    screen.  This commit actually hides it.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=786332

 js/ui/layout.js |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/js/ui/layout.js b/js/ui/layout.js
index fd3b3f5..a2cb6e0 100644
--- a/js/ui/layout.js
+++ b/js/ui/layout.js
@@ -684,8 +684,10 @@ var LayoutManager = new Lang.Class({
     },
 
     showKeyboard: function () {
+        this.keyboardBox.show();
         Tweener.addTween(this.keyboardBox,
                          { anchor_y: this.keyboardBox.height,
+                           opacity: 255,
                            time: KEYBOARD_ANIMATION_TIME,
                            transition: 'easeOutQuad',
                            onComplete: this._showKeyboardComplete,
@@ -711,6 +713,7 @@ var LayoutManager = new Lang.Class({
         }
         Tweener.addTween(this.keyboardBox,
                          { anchor_y: 0,
+                           opacity: 0,
                            time: immediate ? 0 : KEYBOARD_ANIMATION_TIME,
                            transition: 'easeInQuad',
                            onComplete: this._hideKeyboardComplete,
@@ -721,6 +724,7 @@ var LayoutManager = new Lang.Class({
     },
 
     _hideKeyboardComplete: function() {
+        this.keyboardBox.hide();
         this._updateRegions();
     },
 


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