summaryrefslogtreecommitdiff
path: root/mcwm.c
diff options
context:
space:
mode:
authorMichael Cardell Widerkrantz <mc@hack.org>2010-07-20 13:42:58 +0200
committerMichael Cardell Widerkrantz <mc@hack.org>2010-07-20 13:42:58 +0200
commitb407412fd03ccfec4e7388584b47e91817c0385b (patch)
treed022fc6cce15f8c3ba8f605f907392ccf28b1780 /mcwm.c
parentd54e1ca11f5ac29e1f83eab90ab0a6eac9b90182 (diff)
downloadmcwm-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.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/mcwm.c b/mcwm.c
index 7a8dbe4..9fab87c 100644
--- a/mcwm.c
+++ b/mcwm.c
@@ -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;
}