diff options
| author | Dana Jansens <danakj@orodu.net> | 2008-02-06 23:44:15 -0500 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2008-02-14 14:24:07 -0500 |
| commit | deca45dadad1e0e1d5183341a601267f2deb1aa5 (patch) | |
| tree | 0524ad0e4058eeb316ab817a2f5e7ca17ee923f5 /openbox/client.c | |
| parent | a5005506a89ecffe13e04cbcda5c20a2fa6ba25d (diff) | |
key input works for ObPrompt windows now
Diffstat (limited to 'openbox/client.c')
| -rw-r--r-- | openbox/client.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/openbox/client.c b/openbox/client.c index cd26debb..500562b0 100644 --- a/openbox/client.c +++ b/openbox/client.c @@ -270,10 +270,10 @@ void client_manage(Window window, ObPrompt *prompt) map_time = event_get_server_time(); - /* choose the events we want to receive on the CLIENT window */ - attrib_set.event_mask = CLIENT_EVENTMASK; - if (prompt) - attrib_set.event_mask |= KeyPressMask; + /* choose the events we want to receive on the CLIENT window + (ObPrompt windows can request events too) */ + attrib_set.event_mask = CLIENT_EVENTMASK | + (prompt ? prompt->event_mask : 0); attrib_set.do_not_propagate_mask = CLIENT_NOPROPAGATEMASK; XChangeWindowAttributes(ob_display, window, CWEventMask|CWDontPropagate, &attrib_set); |
