summaryrefslogtreecommitdiff
path: root/openbox
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2009-12-10 10:36:19 -0500
committerDana Jansens <danakj@orodu.net>2009-12-10 10:36:19 -0500
commit231f694bcab8eb4ac3b5221191b362b35eddd326 (patch)
tree78775a60cebd35cccb6b16228ffdd3d6585544e3 /openbox
parentc5155e7422668f6a176c15f2cecac6693fcf3134 (diff)
Make sure popup dialogs are not waiting to be shown after they are freed
Diffstat (limited to 'openbox')
-rw-r--r--openbox/popup.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/openbox/popup.c b/openbox/popup.c
index 2a0d5960..5cbe0347 100644
--- a/openbox/popup.c
+++ b/openbox/popup.c
@@ -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);