[gnome-shell/gbsneto/clutter-seat-fallout] shellEntry: Use seat to retrieve keymap



commit 964106513e3f252411d0cb250f5d614e411fd596
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Thu Jan 30 15:57:12 2020 -0300

    shellEntry: Use seat to retrieve keymap
    
    The backend does not handle the keymap anymore; this is now
    handled by ClutterSeat.
    
    Use ClutterSeat to retrieve the default keymap.
    
    https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/968

 js/ui/shellEntry.js | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/js/ui/shellEntry.js b/js/ui/shellEntry.js
index 0488d70d09..3e304146e1 100644
--- a/js/ui/shellEntry.js
+++ b/js/ui/shellEntry.js
@@ -164,7 +164,8 @@ class CapsLockWarning extends St.Label {
         this.clutter_text.ellipsize = Pango.EllipsizeMode.NONE;
         this.clutter_text.line_wrap = true;
 
-        this._keymap = Clutter.get_default_backend().get_keymap();
+        let seat = Clutter.get_default_backend().get_default_seat();
+        this._keymap = seat.get_keymap();
 
         this.connect('notify::mapped', () => {
             if (this.is_mapped()) {


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