]> Dogcows Code - chaz/openbox/blobdiff - openbox/client.c
let you specify return codes for the different buttons in a prompt, and specify a...
[chaz/openbox] / openbox / client.c
index 3867c39e34a9a66ec0be8c804d01ae421a009a7f..aad9202918238ceb29191660dd3c080f8f9aeefc 100644 (file)
@@ -189,8 +189,10 @@ void client_manage(Window window, ObPrompt *prompt)
 
     map_time = event_get_server_time();
 
-    /* choose the events we want to receive on the CLIENT window */
-    attrib_set.event_mask = CLIENT_EVENTMASK;
+    /* choose the events we want to receive on the CLIENT window
+       (ObPrompt windows can request events too) */
+    attrib_set.event_mask = CLIENT_EVENTMASK |
+        (prompt ? prompt->event_mask : 0);
     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_cancel(self->prompt);
         return;
     }
 
This page took 0.024797 seconds and 4 git commands to generate.