diff options
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; } |
