commit fdd795e
Michael Forney
·
2014-08-03 21:18:47 +0000 UTC
parent 1f19448
keyboard: Send modifiers to clients on enter Otherwise, the client's state of the modifiers will remain how they were the last time the modifiers changed when the client had focus.
1 files changed,
+3,
-0
+3,
-0
1@@ -40,9 +40,12 @@ static void enter(struct input_focus_handler * handler,
2 {
3 struct keyboard * keyboard
4 = wl_container_of(handler, keyboard, focus_handler);
5+ struct keyboard_modifier_state * state = &keyboard->modifier_state;
6 uint32_t serial;
7
8 serial = wl_display_next_serial(swc.display);
9+ wl_keyboard_send_modifiers(resource, serial, state->depressed,
10+ state->locked, state->latched, state->group);
11 wl_keyboard_send_enter(resource, serial, view->surface->resource,
12 &keyboard->client_keys);
13 }