diff options
| author | Dana Jansens <danakj@orodu.net> | 2008-02-06 23:33:02 -0500 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2008-02-07 02:14:44 -0500 |
| commit | 5130c1c28ac35fc62a10d8743eef2e9fa21efb20 (patch) | |
| tree | d96c1bb47a9fddcffd78a27b9a6dbd418328929d /openbox/client.c | |
| parent | 5f31bde96d5ee1aef4da69e33e58b89829da3593 (diff) | |
make the prompt buttons respond to button presses. keyboard input code is there too but not working yet.
Diffstat (limited to 'openbox/client.c')
| -rw-r--r-- | openbox/client.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/openbox/client.c b/openbox/client.c index 3867c39e..272d42b3 100644 --- a/openbox/client.c +++ b/openbox/client.c @@ -191,6 +191,8 @@ void client_manage(Window window, ObPrompt *prompt) /* choose the events we want to receive on the CLIENT window */ attrib_set.event_mask = CLIENT_EVENTMASK; + if (prompt) + attrib_set.event_mask |= KeyPressMask; attrib_set.do_not_propagate_mask = CLIENT_NOPROPAGATEMASK; XChangeWindowAttributes(obt_display, window, CWEventMask|CWDontPropagate, &attrib_set); @@ -3255,7 +3257,7 @@ void client_close(ObClient *self) if (!(self->functions & OB_CLIENT_FUNC_CLOSE)) return; if (self->prompt) { - prompt_hide(self); + prompt_hide(self->prompt); return; } |
