]> Dogcows Code - chaz/openbox/blobdiff - openbox/client.c
make the prompt buttons respond to button presses. keyboard input code is there too...
[chaz/openbox] / openbox / client.c
index 1eba49f82e3c9c9c929b8bb075a21b8f3310e61b..cd26debb5fbff3d5d9c73c1c82e202941da45d34 100644 (file)
@@ -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;
     }
 
This page took 0.02291 seconds and 4 git commands to generate.