summaryrefslogtreecommitdiff
path: root/openbox/client.c
diff options
context:
space:
mode:
Diffstat (limited to 'openbox/client.c')
-rw-r--r--openbox/client.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/openbox/client.c b/openbox/client.c
index 1eba49f8..cd26debb 100644
--- a/openbox/client.c
+++ b/openbox/client.c
@@ -272,6 +272,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(ob_display, window,
CWEventMask|CWDontPropagate, &attrib_set);
@@ -3347,7 +3349,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;
}