Blame SOURCES/0001-Revert-backend-x11-Ensure-the-Xkb-group-index-remain.patch

db633a
From 090ac268b91c3b07f90d9d4ebe481bfe649836df Mon Sep 17 00:00:00 2001
db633a
From: Rui Matos <tiagomatos@gmail.com>
db633a
Date: Mon, 13 Jun 2016 19:32:43 +0200
db633a
Subject: [PATCH] Revert "backend-x11: Ensure the Xkb group index remains
db633a
 properly set"
db633a
db633a
This reverts commit 2857fdbdb887fcaa2e2f25d268c34ae039646e78.
db633a
---
db633a
 src/backends/x11/meta-backend-x11.c | 16 +++-------------
db633a
 1 file changed, 3 insertions(+), 13 deletions(-)
db633a
db633a
diff --git a/src/backends/x11/meta-backend-x11.c b/src/backends/x11/meta-backend-x11.c
db633a
index a645bbd..dbcd13f 100644
db633a
--- a/src/backends/x11/meta-backend-x11.c
db633a
+++ b/src/backends/x11/meta-backend-x11.c
db633a
@@ -82,7 +82,6 @@ struct _MetaBackendX11Private
db633a
   gchar *keymap_layouts;
db633a
   gchar *keymap_variants;
db633a
   gchar *keymap_options;
db633a
-  int locked_group;
db633a
 };
db633a
 typedef struct _MetaBackendX11Private MetaBackendX11Private;
db633a
 
db633a
@@ -298,23 +297,15 @@ handle_host_xevent (MetaBackend *backend,
db633a
 
db633a
   if (event->type == priv->xkb_event_base)
db633a
     {
db633a
-      XkbEvent *xkb_ev = (XkbEvent *) event;
db633a
+      XkbAnyEvent *xkb_ev = (XkbAnyEvent *) event;
db633a
 
db633a
-      if (xkb_ev->any.device == META_VIRTUAL_CORE_KEYBOARD_ID)
db633a
+      if (xkb_ev->device == META_VIRTUAL_CORE_KEYBOARD_ID)
db633a
         {
db633a
-          switch (xkb_ev->any.xkb_type)
db633a
+          switch (xkb_ev->xkb_type)
db633a
             {
db633a
             case XkbNewKeyboardNotify:
db633a
             case XkbMapNotify:
db633a
               keymap_changed (backend);
db633a
-              break;
db633a
-            case XkbStateNotify:
db633a
-              if (xkb_ev->state.changed & XkbGroupLockMask)
db633a
-                {
db633a
-                  if (priv->locked_group != xkb_ev->state.locked_group)
db633a
-                    XkbLockGroup (priv->xdisplay, XkbUseCoreKbd, priv->locked_group);
db633a
-                }
db633a
-              break;
db633a
             default:
db633a
               break;
db633a
             }
db633a
@@ -785,7 +776,6 @@ meta_backend_x11_lock_layout_group (MetaBackend *backend,
db633a
   MetaBackendX11 *x11 = META_BACKEND_X11 (backend);
db633a
   MetaBackendX11Private *priv = meta_backend_x11_get_instance_private (x11);
db633a
 
db633a
-  priv->locked_group = idx;
db633a
   XkbLockGroup (priv->xdisplay, XkbUseCoreKbd, idx);
db633a
 }
db633a
 
db633a
-- 
db633a
2.7.4
db633a