diff options
| author | Dana Jansens <danakj@orodu.net> | 2008-02-06 23:33:02 -0500 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2008-02-14 14:24:07 -0500 |
| commit | a5005506a89ecffe13e04cbcda5c20a2fa6ba25d (patch) | |
| tree | 07a221f9c4b2adde79abe528f7deefef186d8c59 /openbox/client.c | |
| parent | 61b8f5243063622598ea21c26cccc220ea29a50c (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 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; } |
