[gtk/4.0-backports: 40/53] x11: A case of argument order confusion




commit 647bc9ff75027273515bc9fc9a7d2538606ef3d5
Author: Matthias Clasen <mclasen redhat com>
Date:   Thu Feb 4 00:20:26 2021 -0500

    x11: A case of argument order confusion
    
    translate_keysym was expecting its arguments the
    other way around.
    
    Pointed out in https://www.viva64.com/en/b/0793/

 gdk/x11/gdkkeys-x11.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gdk/x11/gdkkeys-x11.c b/gdk/x11/gdkkeys-x11.c
index b58371e702..2d2318f3d7 100644
--- a/gdk/x11/gdkkeys-x11.c
+++ b/gdk/x11/gdkkeys-x11.c
@@ -1383,7 +1383,7 @@ gdk_x11_keymap_translate_keyboard_state (GdkKeymap       *keymap,
 
       tmp_keyval = translate_keysym (keymap_x11, hardware_keycode,
                                      group, state,
-                                     level, effective_group);
+                                     effective_group, level);
     }
 
   if (consumed_modifiers)


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