]> Dogcows Code - chaz/openbox/commitdiff
Make sure popup dialogs are not waiting to be shown after they are freed
authorDana Jansens <danakj@orodu.net>
Thu, 10 Dec 2009 15:36:19 +0000 (10:36 -0500)
committerDana Jansens <danakj@orodu.net>
Thu, 10 Dec 2009 15:36:19 +0000 (10:36 -0500)
openbox/popup.c

index 2a0d5960d67d11b6f6dc35091ae0078946ad9bb5..5cbe0347cc4846219757694d85c19be33214db18 100644 (file)
@@ -65,6 +65,8 @@ ObPopup *popup_new(void)
 void popup_free(ObPopup *self)
 {
     if (self) {
+        popup_hide(self); /* make sure it's not showing or is being delayed and
+                             will be shown */
         XDestroyWindow(ob_display, self->bg);
         XDestroyWindow(ob_display, self->text);
         RrAppearanceFree(self->a_bg);
This page took 0.024066 seconds and 4 git commands to generate.