Send keyboard_focus only to client surfaces

dev
Benjamin Franzke 14 years ago
parent 758dd3ea55
commit b7c00a4376
  1. 5
      compositor/compositor.c

@ -1471,8 +1471,9 @@ notify_keyboard_focus(struct wl_input_device *device,
update_modifier_state(wd, *k, 1); update_modifier_state(wd, *k, 1);
} }
wl_input_device_set_keyboard_focus(&wd->input_device, if (es->surface.client)
&es->surface, time); wl_input_device_set_keyboard_focus(&wd->input_device,
&es->surface, time);
} else { } else {
end = device->keys.data + device->keys.size; end = device->keys.data + device->keys.size;
for (k = device->keys.data; k < end; k++) for (k = device->keys.data; k < end; k++)

Loading…
Cancel
Save