diff options
author | Michael Cardell Widerkrantz <mc@hack.org> | 2010-07-20 13:42:58 +0200 |
---|---|---|
committer | Michael Cardell Widerkrantz <mc@hack.org> | 2010-07-20 13:42:58 +0200 |
commit | b407412fd03ccfec4e7388584b47e91817c0385b (patch) | |
tree | d022fc6cce15f8c3ba8f605f907392ccf28b1780 /mcwm.c | |
parent | d54e1ca11f5ac29e1f83eab90ab0a6eac9b90182 (diff) | |
download | mcwm-b407412fd03ccfec4e7388584b47e91817c0385b.zip |
Send KeyPress event to focused window if we don't know what to do with
it.
Diffstat (limited to 'mcwm.c')
-rw-r--r-- | mcwm.c | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -1961,7 +1961,14 @@ void handle_keypress(xcb_key_press_event_t *ev) if (key == KEY_MAX) { PDEBUG("Unknown key pressed.\n"); - /* FIXME: Send this key on to the focused window. */ + + /* + * We don't know what to do with this key. Send this key press + * event to the focused window. + */ + xcb_send_event(conn, false, XCB_SEND_EVENT_DEST_ITEM_FOCUS, + XCB_EVENT_MASK_NO_EVENT, (char *) ev); + xcb_flush(conn); return; } |