summaryrefslogtreecommitdiff
path: root/openbox/popup.c
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2009-11-21 16:05:27 -0500
committerDana Jansens <danakj@orodu.net>2009-11-21 16:05:27 -0500
commit33328583a143677d27eb3d081ce66532c3aaca1c (patch)
treed5b27bc2a7e2482c5e17ac4113e35b5ccef9f744 /openbox/popup.c
parent056295a8ad05f58efc90a7874362d19cd6c42538 (diff)
Some fixes for the pager popups, and avoid a crash if you destroy a popup while it is going to be shown later by a delay.
Diffstat (limited to 'openbox/popup.c')
-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);