diff options
author | Drew DeVault <sir@cmpwn.com> | 2017-06-12 22:33:55 -0400 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2017-06-13 08:10:36 -0400 |
commit | 6bf7e095cf23b570c1fa0e295f9d950404867a22 (patch) | |
tree | 6c6b433a39d54a852a01c06e708d0dfd2fff595b /example/simple.c | |
parent | e257afeb7ea72a035202be02c90490eb3cb7129b (diff) |
Flesh out keyboard support in examples
Diffstat (limited to 'example/simple.c')
-rw-r--r-- | example/simple.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/example/simple.c b/example/simple.c index 89f74330..331a0d08 100644 --- a/example/simple.c +++ b/example/simple.c @@ -162,12 +162,6 @@ void input_remove(struct wl_listener *listener, void *data) { wl_list_remove(&kbstate->key.link); } -static int timer_done(void *data) { - struct state *state = data; - state->exit = true; - return 1; -} - int main() { struct state state = { .color = { 1.0, 0.0, 0.0 }, @@ -225,10 +219,6 @@ int main() { if (!wlr || !wlr_backend_init(wlr)) { return 1; } - struct wl_event_source *timer = wl_event_loop_add_timer(event_loop, - timer_done, &state); - - wl_event_source_timer_update(timer, 30000); while (!state.exit) { wl_event_loop_dispatch(event_loop, 0); |