[gnome-shell/wip/carlosg/lockscreen-fix] shellEntry: Look up keymap from the ClutterSeat



commit 07af53003af1cb089426801efd858d1bca11d785
Author: Carlos Garnacho <carlosg gnome org>
Date:   Fri Jan 31 11:12:19 2020 +0100

    shellEntry: Look up keymap from the ClutterSeat
    
    The get_keymap() method no longer exists on the ClutterBackend, but was
    moved to the ClutterSeat.

 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]