]> Dogcows Code - chaz/openbox/blobdiff - openbox/prompt.c
Merge branch 'master' into chaz
[chaz/openbox] / openbox / prompt.c
index 1aa79d2a122e8a57f2b0859bf4815ca912da66bf..88c74b68d048baf3519a753303b547be07e4b7c0 100644 (file)
@@ -75,11 +75,12 @@ void prompt_startup(gboolean reconfig)
 
 void prompt_shutdown(gboolean reconfig)
 {
-    GList *it;
+    GList *it, *next;
 
     if (!reconfig) {
-        for (it = prompt_list; it; it = g_list_next(it)) {
+        for (it = prompt_list; it; it = next) {
             ObPrompt *p = it->data;
+            next = it->next;
             if (p->cleanup) p->cleanup(p, p->data);
         }
 
@@ -594,7 +595,7 @@ static void prompt_run_callback(ObPrompt *self, gint result)
 {
     prompt_ref(self);
     if (self->func) {
-        gboolean clean = self->func(self, self->focus->result, self->data);
+        gboolean clean = self->func(self, result, self->data);
         if (clean && self->cleanup)
             self->cleanup(self, self->data);
     }
This page took 0.020751 seconds and 4 git commands to generate.