[gtk+] wayland: Emit GdkKeymap::state-changed when appropriate



commit cc70ac104d359f03d52664ad037e3245a15769c4
Author: Matthias Clasen <mclasen redhat com>
Date:   Fri Mar 22 18:34:44 2013 -0400

    wayland: Emit GdkKeymap::state-changed when appropriate
    
    This makes the caps lock warning in password entries work.

 gdk/wayland/gdkdevice-wayland.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gdk/wayland/gdkdevice-wayland.c b/gdk/wayland/gdkdevice-wayland.c
index f512888..f485269 100644
--- a/gdk/wayland/gdkdevice-wayland.c
+++ b/gdk/wayland/gdkdevice-wayland.c
@@ -1075,6 +1075,8 @@ keyboard_handle_modifiers (void               *data,
   device->modifiers = mods_depressed | mods_latched | mods_locked;
 
   xkb_state_update_mask (xkb_state, mods_depressed, mods_latched, mods_locked, group, 0, 0);
+
+  g_signal_emit_by_name (keymap, "state-changed");
 }
 
 static const struct wl_pointer_listener pointer_listener = {


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