diff options
author | Scott Anderson <ascent12@hotmail.com> | 2017-09-29 16:20:35 +1300 |
---|---|---|
committer | Scott Anderson <ascent12@hotmail.com> | 2017-09-29 16:20:35 +1300 |
commit | 5ca9a5c0836a7eff8ad833e0f47a4deea4794bfb (patch) | |
tree | 9d5dace516310eee089ef5d46dcbaaf19c18e838 /backend | |
parent | abe549e01d3a7ef37644f0f6177f41f3829d6423 (diff) |
Remove dead code
Diffstat (limited to 'backend')
-rw-r--r-- | backend/x11/backend.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/backend/x11/backend.c b/backend/x11/backend.c index fd47295a..34801252 100644 --- a/backend/x11/backend.c +++ b/backend/x11/backend.c @@ -42,16 +42,6 @@ static bool handle_x11_event(struct wlr_x11_backend *x11, xcb_generic_event_t *e case XCB_EXPOSE: { wl_signal_emit(&output->wlr_output.events.frame, output); break; - xcb_key_press_event_t *ev = (xcb_key_press_event_t *)event; - struct wlr_event_keyboard_key key = { - .time_sec = ev->time / 1000, - .time_usec = (ev->time % 1000) * 1000, - .keycode = ev->detail - 8, - .state = WLR_KEY_PRESSED, - }; - - wl_signal_emit(&x11->keyboard.events.key, &key); - break; } case XCB_KEY_PRESS: case XCB_KEY_RELEASE: { |