aboutsummaryrefslogtreecommitdiff
path: root/example/simple.c
diff options
context:
space:
mode:
authornyorain <nyorain@gmail.com>2017-06-22 17:23:17 +0200
committernyorain <nyorain@gmail.com>2017-06-22 17:23:31 +0200
commit0813c1dd39942613d9dd47a60922820b6f1610ef (patch)
tree2ced93162e0fedadf0ce754eabb90a7ade307738 /example/simple.c
parentd26a9ba968472cb5c78d9ea0aea3d8f5ff02fbf5 (diff)
parentbb16025318e1c3d3844e71e6e8f29b1e8634ec3e (diff)
Merge branch 'master' into wayland-input
Diffstat (limited to 'example/simple.c')
-rw-r--r--example/simple.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/example/simple.c b/example/simple.c
index cb3a194c..8a01fab8 100644
--- a/example/simple.c
+++ b/example/simple.c
@@ -38,15 +38,6 @@ void handle_output_frame(struct output_state *output, struct timespec *ts) {
glClear(GL_COLOR_BUFFER_BIT);
}
-static void handle_keyboard_key(struct keyboard_state *kbstate,
- xkb_keysym_t sym, enum wlr_key_state key_state) {
- if (sym == XKB_KEY_Escape) {
- kbstate->compositor->exit = true;
- } else if (key_state == WLR_KEY_PRESSED && sym >= XKB_KEY_F1 && sym <= XKB_KEY_F12) {
- wlr_session_change_vt(kbstate->compositor->session, sym - XKB_KEY_F1 + 1);
- }
-}
-
int main() {
struct sample_state state = {
.color = { 1.0, 0.0, 0.0 },
@@ -55,7 +46,6 @@ int main() {
struct compositor_state compositor = { 0,
.data = &state,
.output_frame_cb = handle_output_frame,
- .keyboard_key_cb = handle_keyboard_key,
};
compositor_init(&compositor);
compositor_run(&compositor);