diff options
| author | Dana Jansens <danakj@orodu.net> | 2008-02-06 23:44:15 -0500 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2008-02-07 02:14:44 -0500 |
| commit | 9a4ce94579bc7161d4ed55b20f00b3f76deff3e2 (patch) | |
| tree | 125a2cabda14fc1f38999af165392e4479c73461 /openbox/client.c | |
| parent | 5130c1c28ac35fc62a10d8743eef2e9fa21efb20 (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 272d42b3..33be03de 100644 --- a/openbox/client.c +++ b/openbox/client.c @@ -189,10 +189,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(obt_display, window, CWEventMask|CWDontPropagate, &attrib_set); |
