aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTony Crisci <tony@dubstepdish.com>2017-10-24 07:24:48 -0400
committerTony Crisci <tony@dubstepdish.com>2017-10-24 07:24:48 -0400
commit06d8893543778cac3ed8402916a7fd3bd7c4d78a (patch)
treef290a95c5966376734ad573fa64604f767626692
parentd33a9f8eaaeaf2e7a6bbf0c9f9d57c3334544a2b (diff)
wlr-seat: edit todos
-rw-r--r--types/wlr_seat.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/types/wlr_seat.c b/types/wlr_seat.c
index 0ffa33ab..b2c8a758 100644
--- a/types/wlr_seat.c
+++ b/types/wlr_seat.c
@@ -104,7 +104,6 @@ static void seat_handle_send_keymap(struct wlr_seat_handle *handle,
if (wl_resource_get_version(handle->keyboard) >=
WL_KEYBOARD_REPEAT_INFO_SINCE_VERSION) {
- // TODO: Make this better
wl_keyboard_send_repeat_info(handle->keyboard, 25, 600);
}
}
@@ -590,6 +589,9 @@ static void handle_keyboard_destroy(struct wl_listener *listener, void *data) {
void wlr_seat_set_keyboard(struct wlr_seat *seat,
struct wlr_input_device *device) {
+ // TODO call this on device key event before the event reaches the
+ // compositor and set a pending keyboard and then send the new keyboard
+ // state on the next keyboard notify event.
if (seat->keyboard_state.keyboard == device->keyboard) {
return;
}
@@ -697,7 +699,8 @@ void wlr_seat_keyboard_enter(struct wlr_seat *wlr_seat,
// enter the current surface
if (handle && handle->keyboard) {
- // TODO: handle keys properly
+ // TODO: read the currently pressed keys out of the active keyboard and
+ // put them in this array
struct wl_array keys;
wl_array_init(&keys);
uint32_t serial = wl_display_next_serial(wlr_seat->display);